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

PeterJ do-not-reply at jboss.com
Mon Nov 17 17:47:09 EST 2008


Are you saying that if the connection is released back to the pool that the next time you ask for it you have to go through the initialization again?

You mentioned management bean. Is that a JMX mbean?

As far as I know, if you use a data source, once the user's request completes (and the response is sent), JBossAS will forcibly return the connection to the pool and give you that warning message.

However, if you work directly with the JDBC driver then you can keep the connection open, and it is your responsibility to manage that connection. Note that this mechanism does not work if you are relying on annotations or similar features whereby JBossAS manages transactions for you. For example, this will not work for EJBs.

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

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



More information about the jboss-user mailing list