У источников данных JBoss всегда был флаг для этой цели
(из DTD источников данных):
<!-- Whether to check for unclosed statements when a
connection is returned to the pool and result sets are
closed when a statement is closed/return to the prepared
statement cache.
valid values are:
false - do not track statements and results
true - track statements and result sets and warn when they are not closed
nowarn - track statements but do no warn about them being unclosed (the default)
e.g.
<track-statements>nowarn</track-statements>
-->
Таким образом, в вашем файле *-ds.xml
вы устанавливаете элемент на true
и просмотрите журнал сервера после этого.