[jboss-user] [JCA/JBoss] - Re: How to retrieve same Connection after Activation
weston.price@jboss.com
do-not-reply at jboss.com
Fri Dec 15 12:07:35 EST 2006
No. You can maintain the connection handle across method invocations but not the actualy physical connection. The only way that you would be guaranteed to have the same physical connection is if a transaction spanned multiple method calls on your StatefulSessionBean and your *-ds.xml file specified that you wanted to track-by-transaction.
Generally, this is a bad idea to begin with and requires you to explicitly enable this capability in the CachedConnectionManager.
There is no concept of holding a connection open during passivation. Being that the bean instance is serialized to disk you should close the connection prior to passivation and reopen the connection on activation.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994282#3994282
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994282
More information about the jboss-user
mailing list