3 Replies Latest reply on Nov 22, 2008 6:23 PM by kukeltje

    Combining my hibernate with jbpm

    chipschoch

      I am currently deploying my hibernate classes in an MBean using org.hibernate.jmx.HibernateService. My Sybase database is not configured with distributed transaction management, so I cannot use xa-datasource. I would like to add jbpm to my hibernate service so I can have access to it from all my apps and services and have it share the transaction, but it is not clear to me what the best way to do that is.

      Currently my mappings are in the jboss-service.xml file. Should I just add the jbpm mappings to that file and the jbpnm-jpdl.jar to my .sar?

        • 1. Re: Combining my hibernate with jbpm
          kukeltje

          you can inject your own hibernate session into the JbpmContext when creating one. That way they at least share the transaction. The JbpmContext can already be used in many places, so I'm not sure what you mean there

          • 2. Re: Combining my hibernate with jbpm
            chipschoch

            Yes, I realize that I can inject my hibernate session into the jbpmContext. The question is what is the best way to combine my mappings with jbpm and still be able to deploy it as an MBean service. The jmx HibernateService class does not have any apparent way to do that.

            • 3. Re: Combining my hibernate with jbpm
              kukeltje

              Sorry, I've not used the HibernateService jmx class, so unable to help you in more detail if combining the mappings is what you want. Having access to jBPM from multiple apps and jbpm sharing a connection with those other apps is what I know how to do... Never had the need to combine the mappings...