4 Replies Latest reply on Jul 27, 2012 5:29 AM by acarpine

    JBPM5.3 installer persitence.xml transaction manager

    artist123

      Hi,

       

      There are lots of persistence.xml in jbpm-installer5.3 folder.

      I have two questins,

      1. Why do we need so many persistence.xml?

      2. In lib folder, persistence .xml found in two placess (jbpm-5.3.0.Final-human-task-war and jbpm-human-task-war-5.3.0.Final ) in these files using  JBossTransactionManagerLookup.

       

      <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" />

       

      but in db folder, one persistence.xml found this using JBPMTransactionManager.

           <!-- for AS7 -->

            <property name="hibernate.transaction.manager_lookup_class" value="org.jbpm.integration.console.JBPMTransactionManager" />

       

      question is, what is the difference between these transaction manager, and these two transaction managers work together.

       

      some tips will be appriciated....

       

      thanks,

        • 1. Re: JBPM5.3 installer persitence.xml transaction manager
          artist123

          add the my earlier post...

          there is another persistence.xml file in

          lib --> jbpm-5.3.0.Final-gwt-console.zip --> jbpm-gwt-console-server-5.3.0.war

          also, do I need to change this one too?

          please any one can give me a summary of guideline for these persistence.xml fies...

          • 2. Re: JBPM5.3 installer persitence.xml transaction manager
            acarpine

            Hi Sam,

            1. You can setup a persistence env with JBPM using several different configurations. For example in one case you may want to use the same schema for all persistent info, in another case you may prefer use the schema jbpm for the jbpm data and the schema task for the human task info.

            So much flexibility is possibile thanks to several persistence.xml files.

            2. The two persistence.xml that you cited (jbpm-5.3.0.Final-human-task-war and jbpm-human-task-war-5.3.0.Final) are the same file: jbpm-human-task-war-5.3.0.Final is a .rar that contains the war file.

            The two options are now available because the default transaction manager lookup no longer works with JBoss 7 (as its jndi name has changed) as explained in http://kverlaen.blogspot.it/2011/07/jbpm5-on-as7-lightning.html

            When you customize your installation you will choose the proper TM for your system:

            • org.jbpm.integration.console.JBPMTransactionManager for AS7
            • org.hibernate.transaction.JBossTransactionManagerLookup for AS5

             

            btw if your goal is to using a different db from h2 you should looking at http://docs.jboss.org/jbpm/v5.3/userguide/ch.installer.html#d0e597 where you can find all the info to configure a working system.

            Regarding your second post the answer is yes, you need to configure that persistence.xml file if you want the JBPM console continues to work.

             

            cheers

            1 of 1 people found this helpful
            • 3. Re: JBPM5.3 installer persitence.xml transaction manager
              artist123

              Hi Andrea,

               

              First thanks for your valuable time and reply,

               

              In want to run the humantask service separately, dont wnat to use ant script to run as one (AppsServer and TaskServer). Other than build.xml do I need to modify the source. How to run as a separate service out of Apps server? thanks in advance.

              • 4. Re: JBPM5.3 installer persitence.xml transaction manager
                acarpine

                If you prefer you can run the human task service as a standalone service using the command ant start.human.task (look at the provided readme.html or the build.xml directly).

                This approach leaves human task service separeted form the AS using the ${install.home}/task-service component.