6 Replies Latest reply on Aug 8, 2014 2:15 PM by Paris Apostolopoulos

    Can Infinispan work with Websphere 8.5

    Joseph Fouts Novice

      Currently using Infinispan with JBoss EAP 6.2.


      New client want to run our system using Websphere 8.5.5.


      The last issue that I am having with the migration of our system to Websphere is the use of a datagrid.


      I was hoping I could just use Infinispan with Websphere 8.5.5.


      Does any of the experts know if this is even possible?

      I searched online and could not find no help.


      Thanks in advance.

        • 1. Re: Can Infinispan work with Websphere 8.5
          Sanne Grinovero Master

          Hello, are you asking about Infinispan or JBoss Data Grid?


          Technically there is no reason for it to not work on Websphere - besides obviously the integration being more complex - but if you're asking what version is supported and certified I'd suggest to get in touch with professional support. I'm happy to ask someone to look here if that's what you're looking for.

          • 2. Re: Can Infinispan work with Websphere 8.5
            Joseph Fouts Novice

            Thanks for your response.


            Infinispan is what our system is using.


            I would now like to try and embed the Infinispan into WAS 8.5.


            A couple of things that you might help me with.


            1.  What would be the best version of Infinispan to use with WAS 8.5.

            2.  I've searched online and I could not find no help with the integration of Infinispan as an embedded datagrid within a JEE application server.

                Getting it to work with JBoss EAP 6.1 was really easy. 


            Not sure how to even begin to embed Infinispan with WAS 8.5.


            Would you know of any links, samples or documentation that help me accomplish this integration?


            Again your help is greatly appreciated.

            • 3. Re: Can Infinispan work with Websphere 8.5
              Wolf-Dieter Fink Master

              You simple need to include the same infinispan jars for JBoss and WAS.

              Or did you use Infinispan which is provided by the EAP6.1 installation (which is not supported BTW)


              If you run embedded mode you need to include the infinispan*.jar you need in your application. You might use programatic configuration or xml configuration files

              • 4. Re: Can Infinispan work with Websphere 8.5
                Joseph Fouts Novice

                We have recently upgraded to EAP 6.2.

                Is the Infinispan in EAP 6.2 supported?


                The Infinispan jar file that we have included in our build path is the following:




                My problem is how to support the .... Properties and Dependencies defined in the module.xml.


                <module xmlns="urn:jboss:module:1.1" name="org.infinispan">


                        <property name="jboss.api" value="unsupported"/>



                        <resource-root path="infinispan-core-5.2.7.Final-redhat-2.jar"/>

                        <!-- Insert resources here -->



                        <module name="javax.api"/>

                        <module name="javax.transaction.api"/>

                        <module name="net.jcip"/>

                        <module name="org.infinispan.cachestore.jdbc" optional="true"/>

                        <module name="org.infinispan.cachestore.remote" optional="true"/>

                        <module name="org.infinispan.client.hotrod" optional="true"/>

                        <module name="org.jboss.jandex"/>

                        <module name="org.jboss.logging"/>

                        <module name="org.jboss.marshalling"/>

                        <module name="org.jboss.marshalling.river"/>

                        <module name="org.jboss.staxmapper"/>

                        <module name="org.jgroups"/>

                        <module name="sun.jdk"/>





                Also besides the main folder Infinispan also include 2 additions folders:




                Not sure if the items in these folders must some how come into play when the datagrid is embedded.


                Would you know of any documentation or examples that might help me with my concerns?



                • 5. Re: Can Infinispan work with Websphere 8.5
                  Wolf-Dieter Fink Master

                  If you have a subscription for EAP and you will have a supported Infispan you need to have a JDG subscription for this.

                  The Infinispan component inside EAP is only for internal use and not for custom caches.


                  So you need to bundle JDG libraries with your application or you might use JDG6.3 where EAP modules are distributed for the use inside EAP.

                  This is the supported way for custom caches in EAP.


                  If you have more questions related to this I would recommend to open a support ticket as I assume you have a subscription for your EAP. Also you can use the Knowledgebase to find related articles.

                  • 6. Re: Can Infinispan work with Websphere 8.5
                    Paris Apostolopoulos Newbie

                    Hi, I have done it sort of works but they are some .. corner cases. So


                    We are using Websphere 8.5.5  Full Profile.  I am bundling infinispan version 6.0.2 (using IBM JDK7) (what's out for that) as a library in my final ear. So Infinispan is bundled all along. I am using a @Startup EJB to create a CacheManager, read some basic configuration (or programmatic) whatever suits you. (See here ). I am also destroying the cache manager on @PostDestroy.


                    I have not fully tested it on replication mode, but I assume that is going to work as it works while running the same example on 2 standalone profile wildfly's.


                    I have not tried yet to make use of the GenericTransactionManager to make the operations on the cache join the JTA manager (out of all corner-cases) I think this is the most difficult, since we already have custom code trying to integrate with the internal JTA manager of Websphere, on Hibernate 4 .