7 Replies Latest reply on Mar 20, 2012 5:54 AM by galder.zamarreno

    JBoss AS7 - Infinispan

    ranga033

      Hi,

       

      Currently I understand that Infinispan is configured within AS7+ through domain.xml or standalone.xml. Hence, it is embedded within the server instance. I am looking for a way to seperate the cache part from within the server instance so that the server and the cache part are on different nodes.

       

      For example, I have setup a cluster and I am looking to run the Infinispan cache in distributed mode seperately.  Hence the web,ejb, hibernate cache resides completely outside the server instance JVM.

       

      Any heads-up on how this can be configured ?

       

      -rang01

        • 1. Re: JBoss AS7 - Infinispan
          ranga033

          Just adding for more clarity...

           

          Basically I am looking for having Infinispan as a remote server (in distributed mode)  which is accessed by AS7+ for cache containers for web,ejb, hiberate etc. Is this possible ?

          • 2. Re: JBoss AS7 - Infinispan
            mackerman

            Yes, it is possible.  In fact, we are doing this by using the usual standalone infinispan configuration files.  Those files are then included and used within the webapp just as they would be in a standalone app.  We have removed all infinispan configuration from domain.xml.  The reason for us doing this was that we were unable to find a way to configure infinispan as we wished in domain.xml, for example in order to use using a gossip router.

            • 3. Re: JBoss AS7 - Infinispan
              ranga033

              Thank you Mitchell for the reply. If I understand right, it means you would have Infinispan configured for every application(ejb, war etc) which is deployed in the app server - AS7+?

              • 4. Re: JBoss AS7 - Infinispan
                mackerman

                Correct.  we only have one application installed in the cluster, so that is not an issue for us.

                • 5. Re: JBoss AS7 - Infinispan
                  galder.zamarreno

                  You can start one of the Infinispan servers separately and access it with the corresponding client from AS7.

                  • 6. Re: JBoss AS7 - Infinispan
                    ranga033

                    Ok, so for clients (apps deployed in AS7) I can use the Infinispan servers which are started seperately. I believe AS7 internally uses Infinispan for the cluster infrastructure as well. How do I make this work with seperate Infinispan servers , i.e how do I make sure when the server starts up, it looks for Infinispan servers which I have started seperately. I could not find any configurations in domain.xml/standalone.xml of AS7 which support this.

                    • 7. Re: JBoss AS7 - Infinispan
                      galder.zamarreno

                      The Infinispan remote client libraries are not part of AS7, so you need to bring them in yourself (into your app). More info on the client here.