3 Replies Latest reply on Aug 10, 2012 9:19 AM by mircea.markus

    Infinispan hotrod transaction manager look up

    chavarao

      Hi,

       

      We have  one application running on weblogic uses weblogic transaction manager and one app running on apache. I want to use centralize caching

      so I  have started using Infinspan hot rod server and   having both apps to use hot rod client to talk to inifinispan remote server. This seems working.

       

       

      Now  I want to some of the cache to be transactional.  I am trying to find how GenericTransactionManagerLookup works?   Also, there are multiple weblogic runing by having their  own webapo but all of them talking to this cache server.

       

       

      I have configured as per doc but I am getting errors like. any ideas?  

       

      TransactionManager can be used only with Embeded cache mode not hotrod remote cache mode?

       

       

      C2012-08-06 17:25:17,060 DEBUG [GenericTransactionManagerLookup] (InfinispanServer-Main) Trying to lookup TransactionManager for JBoss AS 7

      2012-08-06 17:25:17,106 DEBUG [GenericTransactionManagerLookup] (InfinispanServer-Main) Failed to perform a lookup for [java:jboss/TransactionManager (JBoss AS 7)]

      2012-08-06 17:25:17,106 DEBUG [GenericTransactionManagerLookup] (InfinispanServer-Main) Trying to lookup TransactionManager for JBoss AS 4 ~ 6, JRun4

      2012-08-06 17:25:17,107 DEBUG [GenericTransactionManagerLookup] (InfinispanServer-Main) Failed to perform a lookup for [java:/TransactionManager (JBoss AS 4 ~ 6, JRun4)]

      2012-08-06 17:25:17,107 DEBUG [GenericTransactionManagerLookup] (InfinispanServer-Main) Trying to lookup TransactionManager for Resin 3.x

      2012-08-06 17:25:17,107 DEBUG [GenericTransactionManagerLookup] (InfinispanServer-Main) Failed to perform a lookup for [java:comp/TransactionManager (Resin 3.x)]

      2012-08-06 17:25:17,107 DEBUG [GenericTransactionManagerLookup] (InfinispanServer-Main) Trying to lookup TransactionManager for Sun Glassfish

      2012-08-06 17:25:17,108 DEBUG [GenericTransactionManagerLookup] (InfinispanServer-Main) Failed to perform a lookup for [java:appserver/TransactionManager (Sun Glassfish)]

      2012-08-06 17:25:17,108 DEBUG [GenericTransactionManagerLookup] (InfinispanServer-Main) Trying to lookup TransactionManager for Borland, Sun

      2012-08-06 17:25:17,109 DEBUG [GenericTransactionManagerLookup] (InfinispanServer-Main) Failed to perform a lookup for [java:pm/TransactionManager (Borland, Sun)]

      2012-08-06 17:25:17,109 DEBUG [GenericTransactionManagerLookup] (InfinispanServer-Main) Trying to lookup TransactionManager for BEA WebLogic

      2012-08-06 17:25:17,110 DEBUG [GenericTransactionManagerLookup] (InfinispanServer-Main) Failed to perform a lookup for [javax.transaction.TransactionManager (BEA WebLogic)]

      2012-08-06 17:25:17,111 DEBUG [GenericTransactionManagerLookup] (InfinispanServer-Main) Trying to lookup TransactionManager for Resin, Orion, JOnAS (JOTM)

      2012-08-06 17:25:17,111 DEBUG [GenericTransactionManagerLookup] (InfinispanServer-Main) Failed to perform a lookup for [java:comp/UserTransaction (Resin, Orion, JOnAS (JOTM))]

      2012-08-06 17:25:17,112 DEBUG [GenericTransactionManagerLookup] (InfinispanServer-Main) Trying WebSphere 5.1: com.ibm.ws.Transaction.TransactionManagerFactory

      2012-08-06 17:25:17,114 DEBUG [GenericTransactionManagerLookup] (InfinispanServer-Main) Trying WebSphere 5.0: com.ibm.ejs.jts.jta.TransactionManagerFactory

      2012-08-06 17:25:17,120 DEBUG [GenericTransactionManagerLookup] (InfinispanServer-Main) Trying WebSphere 4: com.ibm.ejs.jts.jta.JTSXA

      2012-08-06 17:25:17,122 DEBUG [GenericTransactionManagerLookup] (InfinispanServer-Main) Couldn't find any WebSphere TransactionManager factory class, neither for WebSphere version 5.1 nor 5.0 nor 4

      2012-08-06 17:25:17,123 WARN  [GenericTransactionManagerLookup] (InfinispanServer-Main) ISPN000104: Falling back to DummyTransactionManager from Infinispan

        • 1. Re: Infinispan hotrod transaction manager look up
          mircea.markus

          this is logged by the HotRod server, right? If so does it run on the same process as the Weblogic where the TxManager is deployed? What Weblogic version are you using?

           

          TransactionManager can be used only with Embeded cache mode not hotrod remote cache mode?

          No, only embeded caches are transactional.

          • 2. Re: Infinispan hotrod transaction manager look up
            chavarao

            They are running on different servers and different process. Infinispan is running on one machine and  weblogic is running on different machine. 

             

            I  read some where in the forum that you will have a support transactions in HotRod Remote Cache.Is that  right? If yes , when that will be released.

             

             

            Here is my client  code look like in Weblogic and  we have multiple weblogic envs for different apps might have similar updates like below and each weblogic has thier own transaction manager.

             

            Also , similar code exists different app in tomcat which uses JPATransactionManager.

             

            Tx.begin

             

            updatedbForTableA ();

            Cache.remove(keyforTable2);

             

            do some thing else logic

             

             

            updatedbForTableB ();

             

            Cache.remove(keyforTable2);

             

            tx.commit();

             

            if there are any errors

            tx.rollback.

             

             

             

             

             

             

            • 3. Re: Infinispan hotrod transaction manager look up
              mircea.markus

              They are running on different servers and different process. Infinispan is running on one machine and  weblogic is running on different machine.

              That explains the warnings you get, as the Weblogic transaction manager is not deployed by default in the Infinispan VM.

              I  read some where in the forum that you will have a support transactions in HotRod Remote Cache.Is that  right? If yes , when that will be released.

              This feature is planned for 6.0: https://issues.jboss.org/browse/ISPN-375