Hello,
One solution that worked for me is:
In components.xml
<persistence:hibernate-session-factory name="jbpmSessionFactory" />
<persistence:managed-hibernate-session name="jbpmSession"
auto-create="true"
scope="CONVERSATION"
session-factory="#{jbpmSessionFactory}" />
In hibernate.cfg.xml
<hibernate-configuration>
<session-factory name="java:/jbpmSessionFactory">
false
after_transaction
In jbpm.cfg.xml
<jbpm-context>
The Seam code that calls the Stateless Session bean facade over jBPM is
has appropriate @Begin @End annotations (to mark the Conversation)
In the jBPM Stateless Session Facade:
@In JbpmContext jbpmContext;
@In(value="jbpmSession")
Session session;
...
public void startProcess(String processName, String key) {
jbpmContext.setSession(session);
_________________
Hope this will help you,
Atanas Krachev
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170351#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...