Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set autocommit to false at tomcat connection-pool?

 
starki fox
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, my example works but I cannot set the
autocommit parameter to false, but this is quite important to me.
(i don't want to set it to false at the connection-object)
Can someone give me advice how to handle this?

Thanks Starki



<ResourceParams name="jdbc/test">
<parameter>
<name>validationQuery</name>
<value>select * from dual</value>
</parameter>

<parameter>
<name>maxWait</name>
<value>5000</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>4</value>
</parameter>
<parameter>
<name>password</name>
<value>xtest</value>

</parameter>
<parameter>
<name>url</name>
<value>jdbc racle:thin:@xinfosap.w1:1521 rcl;autocommit=false</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>oracle.jdbc.driver.OracleDriver</value>
</parameter>

<parameter>
<name>auto-commit</name>
<value>false</value>
</parameter>
<parameter>
<name>autoCommit</name>
<value>false</value>
</parameter>
<parameter>
<name>autocommit</name>
<value>false</value>
</parameter>
<parameter>
<name>maxIdle</name>

<value>2</value>
</parameter>

<parameter>
<name>username</name>
<value>xtest</value>
</parameter>


</ResourceParams>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic