Here is JbpmSession.close() in all its glory:
  public void close() {
  |     try {
  |       if ( (session!=null)  && (session.isOpen())) {
  |         session.close();
  |       }
  |     } catch (Exception e) {
  |       log.error(e);
  |       throw new RuntimeException( "couldn't close the hibernate 
connection", e );
  |     } finally {
  |       popCurrentSession();
  |       session = null;
  |     }
  |   }
The following line in your Hibernate configuration already closes the Hibernate 
session, so that is out. You won't be able to pop it from the thread-local 
stack because popCurrentSession() is private. This might leak memory in 
containers that pool threads.

Tom is working on a different approach to hold context objects in the 3.1 
branch. It should cover the present situation.

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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to