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&...]