You should change your configuration to see where the problem is, see
it will give you hints where the code is not correct, and also is a workaround in production but it will cost a bit performance (not much).
You have to close Results, Statements and Connections in any case (e.g. in a finally block).
Also https://issues.jboss.org/browse/JBAS-8757 might be an issue.
Wolf-Dieter Fink wrote:
That one shouldn't apply in this case because that bug was introduced (in the EAP branch) after JBoss AS 5.1.0 was released
Thank You Wolf/Jaikiran. I will follow your tips and get to the bottom of it.