[jboss-user] [jBPM] - Re: Restore JBPM session

Vladimir Stankovic do-not-reply at jboss.com
Mon Jan 28 06:10:40 EST 2013


Vladimir Stankovic [https://community.jboss.org/people/svlada] created the discussion

"Re: Restore JBPM session"

To view the discussion, visit: https://community.jboss.org/message/794576#794576

--------------------------------------------------------------
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
[https://community.jboss.org/message/794576#794576]

Start a new discussion in jBPM at Community
[https://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/20130128/33a3c4b9/attachment.html 


More information about the jboss-user mailing list