I have EJB that is Bean managed. Some methods get a connection and may call other methods that may get their own connection. When this happens- and the 2nd method- when it is trying to close() its connection- I get an exception: Trying to return an unknown connection2!. What is this. Is this some known behavior. If I change my code to pass the originally obtained Conection from the 1st method to the 2nd method (so it does not have to get its own)- the error goes away.
able from unregister connection
java.lang.IllegalStateException: Trying to return an unknown connection2! org.jb
oss.resource.adapter.jdbc.WrappedConnection@7d7c7f at org.jboss.resource.connectionmanager.CachedConnectionManager.unregist
Thanks a lot,