JBoss Community

Re: Restore JBPM session

created by Vladimir Stankovic in jBPM - View the full discussion

What are best practices for storing SessionID?

 

I am using Spring and my KnowledgeSession is defined as follows:

 

  <jbpm:ksession id="ksession" type="stateful" kbase="kbase" >

<jbpm:configuration>

      <jbpm:jpa-persistence>

        <jbpm:transaction-manager ref="txManager"/>

        <jbpm:entity-manager-factory ref="myEmf"/>


    </jbpm:jpa-persistence>
   </jbpm:configuration>
</jbpm:ksession>

 

 

When I restart server, new SessionID is generated and I am able to retreive User tasks with this new SessionID.

 

Is this appropriate way to restore session, or some other mechanism (custom Session Managment) must be employed?

Reply to this message by going to Community

Start a new discussion in jBPM at Community