2 Replies Latest reply on Feb 13, 2013 11:57 AM by yjboss

    Jboss AS7 Managed Connection transaction

    yjboss

      Hi,

      I have 2 datasource in jboss AS7.

      One use JTA transaction and another not.

      in my app i have this scenraio :

       

      ....

       

      code calls datasource 1 (==> transaction in managed trasaction server)

       

      inside this transaction i must interact with the second datasource (non jta datasource)

      but i dont want to have this seconde datasource in global managed trancation initated by the first call.

       

      Any idea ti how do this?

       

      Thanks for your helps.

        • 1. Re: Jboss AS7 Managed Connection transaction
          jbertram

          Write another EJB that uses Container-manager transactions and the NOT_SUPPORTED transaction attribute.  Do the logic that shouldn't be in a transaction in this other EJB.

          • 2. Re: Jboss AS7 Managed Connection transaction
            yjboss

            Thanks for your reply;

            My context is : 2 .war in .EAR

            The first .war is a jbpm process that is managed with Managed Transaction server Jboss (with JPA and JTA) ==> data source 1

            And second .war is an application that do the logic treatment ans use non jta no jpa for persistence ==> datasource2

             

            Is there a way to say in declaration of datasource 2 to be separated from the Managed Conexte caller ?

             

            Thanks four your helps