I'm not sure which problem we are trying to solve? The deadlock? Or a stale connection?
If the deadlock is expected, then turning the connection validation on should solve the problem of getting a bad (i.e. stale) connection on the getConnection() request after the deadlock.
Regards,
-marina
[Message sent by forum member 'mvatkina' ]
http://forums.java.net/jive/thread.jspa?messageID=374201