Michael Wohlfart [
http://community.jboss.org/people/mwohlf] created the discussion
"Re: Spring 3 + jBPM 4.4 - 2 different hibernate sessions"
To view the discussion, visit:
http://community.jboss.org/message/575450#575450
--------------------------------------------------------------
<
Hi mqqla2,
my jbpm.cfg.xml for spring looks a bit different:
<jbpm-configuration spring="enabled">
[...]
<command-service name="newTxRequiredCommandService">
<retry-interceptor />
<environment-interceptor policy="requiresNew" />
<spring-transaction-interceptor
transaction-manager="localTransactionManager" current="false"
policy="requiresNew" />
</command-service>
[...]
<command-service name="txRequiredCommandService">
<retry-interceptor />
<environment-interceptor />
<spring-transaction-interceptor
transaction-manager="localTransactionManager" current="true" />
</command-service>
[...]
<transaction-context>
<transaction type="spring"/>
[...]
<hibernate-session factory="sessionFactory" current="true"
close="false" tx="true" />
</transaction-context>
</jbpm-configuration>
"sessionFactory" and "localTransactionManager" are spring beans, HTH
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/575450#575450]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]