I've been using jSwat to track down resource issues and noticed that our application was leaking connections. Obviously this is a no-no on our part. The only scary part though was that those connections were never garbage collected and never timed out. our connections settings are listed below, but anybody should be able to duplicate this. Create a simple app that opens a connection and doesn't close it. Set the idle-timeout to 15 minutes, start the app and come back a few hours later and the connection still hasn't been reaped.
I'm stepping through the connection Wrappers and JCA support in JBoss now trying to figure this out. But shouldn't the connections timeout after 15 minutes? Is there another configuration option to look at?
JBOSS 3.2.1 JDK 1.4.1_02 win 2000
I think this is how it is supposed to work. If you return the connection to the pool it will be destroyed after 15 minutes of inactivity. I you do not return the connection then it will stay active until you close it.