LmnkStatementImpl is a InvocationHandler, and in the ivoke method we do this:

 
  | else if (method.getName().equals("close")) {
  |             this.close();
  |             realStatement.close();
  |          }
  | 

So we intercept the the close of the statement and first close the resultsets, then 
the real 'wrapped' statement.

According to the stack trace we are getting the warning from 
'WrappedPreparedStatement.executeQuery'
here's the stack that is relevant:


  | at 
org.jboss.resource.adapter.jdbc.WrappedStatement.registerResultSet(WrappedStatement.java:843)
  |         at 
org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:315)
  |         at 
com.elementk.service.jdbc.audit.AuditedPreparedStatement.executeQuery(AuditedPreparedStatement.java:84)
  |         at 
com.elementk.service.jdbc.audit.AuditedPreparedStatement.invoke(AuditedPreparedStatement.java:43)
  |         at $Proxy466.executeQuery(Unknown Source)
  |         at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
  |         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:324)
  |         at 
com.elementk.service.jdbc.impl.LmnkStatementImpl.invoke(LmnkStatementImpl.java:142)
  | 
  | 

It seems to be check the resultset when the query is executed, not when the statement 
is being closed.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842302#3842302

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842302


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to