JBoss Community

Re: Spring 3 + jBPM 4.4 - 2 different hibernate sessions

created by Michael Wohlfart in jBPM - View the full discussion

<

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

Start a new discussion in jBPM at Community