[jboss-user] [jBPM] - Re: when to use ksession.dispose()?

Mauricio Salatino do-not-reply at jboss.com
Wed Mar 9 07:46:23 EST 2011


Mauricio Salatino [http://community.jboss.org/people/salaboy21] created the discussion

"Re: when to use ksession.dispose()?"

To view the discussion, visit: http://community.jboss.org/message/592109#592109

--------------------------------------------------------------
It really depends on what you are doing. If you have one session and the session will be used by all the users from the application until the application is shutdown you must call it there. If you have multiple sessions that are transient in the time and can be recreated, before creating a new session you can call dispose. 
The main idea behind the dispose method is to remove all the references that have the knowledge session to the domain objects and internal objects that are not needed anymore. 
Greetings
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/592109#592109]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110309/81875a7e/attachment.html 


More information about the jboss-user mailing list