[jboss-user] [JCA/JBoss] - Idle timeout connection not working? database connection is

vlnmca do-not-reply at jboss.com
Tue Jun 24 08:06:03 EDT 2008


Hello,
My app running under JBoss 4.0.4 uses Oracle DB configured with the following DS file:


  | 
  | 
  |   <local-tx-datasource>
  |     <jndi-name>jdbc/mydb</jndi-name>
  |     <connection-url>jdbc:oracle:thin:@111.222.333.444:1521:oradb</connection-url>
  |     <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
  |     <user-name>user</user-name>
  |     pass
  |     <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
  |     
  |          <type-mapping>Oracle9i</type-mapping>
  |     
  |     <min-pool-size>3</min-pool-size>
  |     <max-pool-size>10</max-pool-size>
  |     <idle-timeout-minutes>1</idle-timeout-minutes>
  |   </local-tx-datasource>
  | 
  | 

I was expecting every minute( or whatever interval is given in idle-timeout-minutes) a process that removes the idle connections to be run.
This doesn't happen. I run a test that reached the maximum number of connections. I then started monitoring the connections, but none of the idle connections were removed.
I checked my code and every connection was closed after an operation.
Is there anything wrong with my configuration? What could be keeping these connections open?
Thanks.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160193#4160193

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160193



More information about the jboss-user mailing list