I am using one ksession per entire application strategy and ofcourse its persistable session. My question is, What is the best practice to restore previous session when an application is deployed/re-started ? I could store the SESSIONINFO.ID in to my own table so that every time application is started I could load the same session by using JPAKnowledgeService.loadStatefulKnowledgeSession(id, kbase, configuration, environment); Is there any clean way or jBPM provides any out of the box solution for this ?
How are you guys restoring the session ? What is the best practice ? Do I have to store the jBPM created session Id and use it every time I restart the applicaiton ?