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

JBoss specific code in org.jbpm.pvm.internal.tx.JtaTransaction class

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • jBPM 4.4
    • jBPM 4.3
    • None
    • None

      The org.jbpm.pvm.internal.tx.JtaTransaction class has JBoss specific code which does not run on Tomcat if JTA transaction is obtained via JOTM.

      The code written is as below:

      public static final String JNDINAME_USERTRANSACTION_JBOSS_GLOBAL = "UserTransaction";
      public static final String JNDINAME_TRANSACTIONMANAGER_JBOSS_GLOBAL = "java:/TransactionManager";

      But in Tomcat the required code is:
      public static final String JNDINAME_USERTRANSACTION_JBOSS_GLOBAL = "java:comp/env/UserTransaction";

      public static final String JNDINAME_TRANSACTIONMANAGER_JBOSS_GLOBAL = "java:comp/env/TransactionManager";

      We have tested this using the above mentioned change and it works. But to make this work in any server we need one common approach so that it jBPM works in any server apart from JBoss. This should be externally configurable depending on the server used. I am in the process of creating one patch for this. I am ready to send that patch.

            rebody HuiSheng Xu (Inactive)
            sjayanta Jayanta Sarkar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: