[jboss-user] [jBPM] - Re: Spring 3 + jBPM 4.4 - 2 different hibernate sessions

Michael Wohlfart do-not-reply at jboss.com
Fri Dec 10 11:14:18 EST 2010


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&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101210/222378ab/attachment.html 


More information about the jboss-user mailing list