JBoss Community

Re: Persistence unit name for jBPM5

created by Maciej Swiderski in jBPM - View the full discussion

Yes, this is the way you build up entity manager factory but you found for task server and what you are looking for (as original post refers to) is session state persistence.

So you should look for a place in your application where you create stateful sessions rather than knowledge base. There you should utilize JPAKnowledgeService to create session where one of the arguments for the newStatefulKnowledgeSession method is environment that should contain entity manager factory instance.

 

HTH

Reply to this message by going to Community

Start a new discussion in jBPM at Community