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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to