There should be nothing preventing the connection from being returned to the pool. A
simple
| connection.close()
|
should do it. However, if you are not firing a connection close event to your associated
ConnectionListener(s) then this wouldn't occur, so it sounds like this is not being
done. Check your ManagedConnection and verify that
1)You are firing a connection close event to the listener(s) and supplying the
ManagedConnection instance in the constructor of the ConnectionEvent.
2) You are setting the handle on in the ConnectionEvent so it can be released.
An example of how to do this can be found in
| org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection
|
Since you are non transaction you don't need to worry about Tx interleaving holding
the connection open for the lifetime of the transaction.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022851#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...