[jboss-user] [JCA/JBoss] - Re: Keep the connection alive after a management bean method

vickyk do-not-reply at jboss.com
Tue Nov 18 00:37:56 EST 2008


"wimxa" wrote : I.e. the only option is not using DataSources, but JDBC directly. JBoss will always forcibly close the connection. Is there some parameter that I can tweak this with?
  | 

The CachedConnectionInterceptor(CCI) in the Interceptor that checks for the leaked connections in ejb method calls.You can disable the CachedConnectionInterceptor but I would not recommend you that, I would rather advice you to refactor the LegacyObject,  you should not pass the connection object to the LegacyObject.
The DataSource object should be passed to the LegacyObject instead of the connection object.
Check for the CCI at $JBOSS_HOME/server//conf/standardjboss.xml, just uncomment it in the appropriate container.
http://www.jboss.org/community/docs/DOC-12682

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

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



More information about the jboss-user mailing list