What I stated was for a sample which you can follow and set it for your connection pool.
Earlier response :
"Its available in admin GUI :
eg:
Left pane : Resources > JDBC > JDBC Connection Pools > Click "Derby Pool"
Right pane : select the tab "Advanced",
Section : "Connection Settings"
Attribute : "Leak-timeout"
Similarly, you can set it for your connection pool. "
[Message sent by forum member 'jr158900']
http://forums.java.net/jive/thread.jspa?messageID=484447