[jboss-user] [JBoss jBPM] - Re: How to retirieve Hibernate Session object in jBpm 4.0 CR
jbarrez
do-not-reply at jboss.com
Thu Jun 11 11:41:43 EDT 2009
It is logical you can't find the current Hibernate Session, since there is none. A hibernate session is only open during a jbpm operation and is closed afterwards.
So I guess that basically what you want is access to the same SessionFactory as the one that is used by jBPM, which you can get through the processEngine in the same construct as the one I pasted above:
processEngine.get(Sessionfactory.class)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237067#4237067
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237067
More information about the jboss-user
mailing list