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#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...