7 Replies Latest reply on Feb 15, 2010 4:53 PM by prabhat.jha

    Infinispan on AS 4.2.3

    prabhat.jha

      I was going through this wiki http://community.jboss.org/wiki/UsingInfinispanasJPAHibernateSecondLevelCacheProvider and thought of taking it for test ride with JBoss Portal and GateIn. Two questions:

       

      1. Will above work for AS 4.2.3 and/or EAP 4.3 ?
      2. What jars do I need?

       

      Thanks,

      Prabhat

        • 1. Re: Infinispan on AS 4.2.3
          manik
          Do you plan to use this in clustered mode or in standalone mode?  I foresee a clash in JGroups jars if the former... :/
          • 2. Re: Infinispan on AS 4.2.3
            manik

            To clarify a bit more, I'm not sure if you can upgrade AS 4.x to use JGroups 2.9.x (which is what Infinispan needs) since there were some incompatibilities introduced in JGroups 2.8.  Not sure if these have been resolved in 2.9, but a simple swap of JGroups jars in a standard AS4 build would tell you.

             

            Oh, and Infinispan is baselined on JDK 6, not sure if that affects what you are doing.

            1 of 1 people found this helpful
            • 3. Re: Infinispan on AS 4.2.3
              prabhat.jha

              I would say both. In non-clustered configuration, JBP uses ehcache with hibernate but in clustered, it uses jboss cache with hibernate.

               

              If I update jgroups across the server to match infinispan's need, will there still be a problem?

              • 4. Re: Infinispan on AS 4.2.3
                prabhat.jha

                I think we cross-posted a bit. ;-)

                 

                jkd6 is not a problem as AS 4.2.3 has both jdk5 and jdk6 flavors. Let me give it a shot.

                • 5. Re: Infinispan on AS 4.2.3
                  manik

                  prabhat.jha@jboss.com wrote:

                   

                  I would say both. In non-clustered configuration, JBP uses ehcache with hibernate but in clustered, it uses jboss cache with hibernate.

                   

                  If I update jgroups across the server to match infinispan's need, will there still be a problem?

                   

                  So this would let you use Infinispan for both clustered and non-clustered cases.  Fewer moving parts, etc.  (If you are concerned about Infinispan's non-clustered performance, see http://infinispan.blogspot.com/2010/02/infinispan-as-local-cache.html).

                   

                  My concern is whether JGroups 2.9.0 will break the rest of AS4's clustering if you replace jars en-masse.  Something you will have to try out and hopefully report back/maybe write an FAQ or wiki page about Infinispan + AS 4.x. 

                  • 6. Re: Infinispan on AS 4.2.3
                    galder.zamarreno
                    On top of all this, as explained to Prabhat on a private email, the Infinispan 2nd level cache provider has only been tested against Hibernate 3.5 and JBP in 4.3 uses Hibernate 3.2. So, you'd have to verify whether you can swap the Hibernate version as well! And this is before you get into clustering it and dealing with JGroups issues.
                    • 7. Re: Infinispan on AS 4.2.3
                      prabhat.jha
                      So my use case is JBoss Portal and the first step logically seemed to make sure that portal works with hibernate 3.5 first. Simply updating hibernate3.jar in server/default/lib threw some exceptions. Let me see if there is an easy fix for that then proceed to the next step.