-
1. Re: Can Infinispan work with Websphere 8.5
sannegrinovero Jul 29, 2014 8:05 PM (in response to foutjo)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
foutjo Jul 30, 2014 9:41 AM (in response to sannegrinovero)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
wdfink Jul 30, 2014 4:01 PM (in response to foutjo)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
foutjo Jul 31, 2014 10:43 AM (in response to wdfink)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:
infinispan-core-5.2.7.Final-redhat-2.jar
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">
<properties>
<property name="jboss.api" value="unsupported"/>
</properties>
<resources>
<resource-root path="infinispan-core-5.2.7.Final-redhat-2.jar"/>
<!-- Insert resources here -->
</resources>
<dependencies>
<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"/>
</dependencies>
</module>
Also besides the main folder Infinispan also include 2 additions folders:
cachstore
client
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?
Thanks.
-
5. Re: Can Infinispan work with Websphere 8.5
wdfink Aug 1, 2014 4:46 AM (in response to foutjo)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
javapapo Aug 8, 2014 2:15 PM (in response to foutjo)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 .