I?m running into a strange issue, and I need a hand. I have 2 remote stateless EJB?s both use spring and hibernate 2.1.8. The flow of the standalone execution is as follows
--> = Direction of the calls
EJB Transaction Starts -->
Spring interceptor opens hibernate session for current thread -->
Business Logic -->
<--Spring closes session for thread
<--Return to caller
This works well for both EJB?s when they are called from separate client calls, however when we merge them I?m receiving the error outlined below.
4:31:06,468 INFO [CachedConnectionManager] Closing a connection for you. Please close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@12cad48
I?ve read this post
but I don?t understand why this would not apply in a single remote EJB inovacation, but an remote EJB to another remote EJB causes an issue. Here is the basic flow is the same, except the first EJB makes a remote call to the clustered JNDI to invoke the second EJB.
Everything appears to work correctly, however I receive the warning when the client call to the first EJB returns. I?m not sure what I?m missing, according to a Hibernate post, JBoss is just ?confused? since Hibernate is handling the sessions, but I would like a more concrete answer than ?confused? before I disable the debugging message.