Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-4270

RuntimeManager fails in CMT environments that cannot access java:comp/UserTransaction

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jBPM 6.1.0.Final
    • jBPM 6.4.0.Beta1
    • Runtime Engine
    • None

      When using jBPM embedded in EJB services layer with CMT in AS like Websphere, RuntimeManager like PerProcessInstanceRuntimeManager fails at initialization as it can't resolve java:comp/UserTransaction.

      The code creates a org.drools.persistence.jta.JtaTransactionManager with null arguments that try to discover UserTransaction. Per spec UserTransaction it is not visible if we run under CMT, so the system raises an exception. IMO it must try to discover first if we have a TransactionManager in Environment and reuse it, or create a KieSpringTransactionManager if we are under a Spring context.

              swiderski.maciej Maciej Swiderski (Inactive)
              aartigao Alan Artigao (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: