[jboss-user] [jBPM] - Re: Persistence unit name for jBPM5

Maciej Swiderski do-not-reply at jboss.com
Thu Dec 1 05:42:24 EST 2011


Maciej Swiderski [http://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: Persistence unit name for jBPM5"

To view the discussion, visit: http://community.jboss.org/message/639288#639288

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

Start a new discussion in jBPM at Community
[http://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/20111201/8f645b3f/attachment.html 


More information about the jboss-user mailing list