1 2 Previous Next 19 Replies Latest reply on Oct 20, 2016 9:13 PM by Amos Feng Go to original post
      • 15. Re: Integrating Ironjacamar - Narayana with jbpm
        Amos Feng Apprentice

        Hi Karthick,

         

        I had used the jboss-bpmsuite-6.3.0.GA-deployable-generic.zip and I integrated with our tomcat-jta which should work.

        1. you need to include the following three java files in your project
        2. Edit the ${TOMCAT_HOME}/webapp/business_central/META-INF/context.xml
          • comment the Bitronix configuration
            • <!-- <Listener className="bitronix.tm.integration.tomcat55.BTMLifecycleListener" /> -->
              <!-- <Resource name="jdbc/jbpm" uniqueName="jdbc/jbpm" auth="Container" -->
              <!--           removeAbandoned="true" factory="bitronix.tm.resource.ResourceObjectFactory" type="javax.sql.DataSource" /> -->
              <!-- <Resource name="TransactionSynchronizationRegistry" auth="Container" type="javax.transaction.TransactionSynchronizationRegistry" -->
              <!--           factory="bitronix.tm.BitronixTransactionSynchronizationRegistryObjectFactory" /> -->
              <!-- <Transaction factory="bitronix.tm.BitronixUserTransactionObjectFactory" /> -->
              
          • add the Narayana configuration
            • <Transaction factory="org.jboss.narayana.tomcat.jta.UserTransactionFactory"/>
              <Resource name="TransactionManager" type="javax.transaction.TransactionManager"
                        factory="org.jboss.narayana.tomcat.jta.TransactionManagerFactory"/>
              <Resource name="TransactionSynchronizationRegistry" type="javax.transaction.TransactionSynchronizationRegistry"
                        factory="org.jboss.narayana.tomcat.jta.TransactionManagerFactory"/>
              <Resource name="TransactionSynchronizationRegistry" type="javax.transaction.TransactionSynchronizationRegistry"
                        factory="org.jboss.narayana.tomcat.jta.TransactionSynchronizationRegistryFactory"/>
              
              
        3. add the ${TOMCAT_HOME}/bin/setenv.sh
          • CATALINA_OPTS="-Djbpm.tm.jndi.lookup=java:comp/env/TransactionManager -Djbpm.tsr.jndi.lookup=java:comp/env/TransactionSynchronizationRegistry"
            
        4. start up the tomcat and login to the http://localhost:8080/business-central

         

        Hope it is helpful ! I had test it by using the narayana transactional driver with the h2 data source and I can success to start up the app and login in to create a new process.

         

        Amos

        • 16. Re: Integrating Ironjacamar - Narayana with jbpm
          Karthick Karthick Newbie

          Hey Amos,

           

          Thank you so much again. I will try this for sure.

          If you don't mind, Could you please confirm what type of transaction are you getting by configuring this.(XA / NON-XA)

          My objective is to get non-xa transaction by using narayana. Earlier when i configured i was getting ony XA, that is the reason i went for ironjacamar.

           

          Thanks

          Karthick

          • 17. Re: Integrating Ironjacamar - Narayana with jbpm
            Karthick Karthick Newbie

            In Mysql, i have tried by enabling the trace and find out whether i get XA or not. Earlier i was getting xa only then i tried with ironjacamar datasource and got stuck

            • 18. Re: Integrating Ironjacamar - Narayana with jbpm
              Amos Feng Apprentice

              yeah, I config to use the transactional driver with the h2 xa datasource. I think if you want to use the non-xa mysql datasource, you just need to config the resource with

              <Resource name="jdbc/jbpm" auth="Container" type="javax.sql.DataSource"
                        username="root" password="" driverClassName="com.mysql.jdbc.Driver"
                        url="jdbc:mysql://localhost:3306/jbpm?autoReconnect=true"/>
              

              in the ${TOMCAT_HOME}/webapp/business-central/META-INF/context.xml

               

              I had tried this configuration and it looks good to work.

               

              Thanks,

              Amos

              • 19. Re: Integrating Ironjacamar - Narayana with jbpm
                Amos Feng Apprentice

                In terms of the XA (non-XA) data sources and transactions, I think if you have one or more databases or the other resource which need to involve in the transaction, you need the XA.

                excellent explains could be found on XA and NonXA datasource

                1 2 Previous Next