I use the Seam structure.
If i do
Session sess = (Session)em.getDelegate();
Connection conn = sess.connection();
Is this a new mix? And do I need to close the connection manually?
I tested this in a loop on a Weblogic application server:
Session sess = (Session)em.getDelegate();
for (int i=1; i<=1000; i++) {
Connection conn = sess.connection();
}
And I never saw in the console that the restriction of the Weblogic pool was out of resources and also did not force inactive connections to the pool.
source
share