[jboss-user] [JBoss jBPM] - Best Practice to get SessionFactory
do-not-reply at jboss.com
Mon Apr 6 04:48:00 EDT 2009
Hi all , i have a question on how to get SessionFactory directly from JBPM.
In the documentation
(par 7.7) In the documentation there is a suggestion to use the JBPM SessionFactory ,for own persistence classes.
But my question is: which the best practice is to retrieve the SessionFactory?
I use this code:
in a DAO class, but i seen around that the method
getCurrentJbpmContext() will be deprecated, but in my version 3.3.1 is not. So there is another way to interact with shared sessionfactory? or according to my version (3.3.1 GA), this is the only way?
The DAO class are deployed as Jar with entity classes under the path jbpm-service.sar , and work perfectly at this moment :).
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223569#4223569
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223569
More information about the jboss-user