Is JBoss EAP supported by Red Hat, if we use Infinispan for our user application ?

Latest response

Hello Red Hat Support,

we have some questions about using Infinispan Cache with JBoss EAP.

We are aware that infinispan is used for the jboss internal caching.
For applications, there is the licensed jboss data grid Cache.

In this solution id (https://access.redhat.com/solutions/281643) it is said, that:

"The direct use of Infinispan API is not supported in JBoss EAP"

Our questions:

1.) Please explain the meaning of "direct" (as mentioned above).
2.) How is the Support of JBoss EAP effected by the use of Infinispan ?
3.) What is the correct way, to use Infispan in a user application without licensing JBoss Data Grid ?

Regards

Matthias Bieker, Postbank Systems AG

Responses

Hi Matthias,

I would strongly recommend that you open a support case to get definitive answers to your support questions.

Our support engineers will be able to assess what you are specifically wanting to accomplish, and give you specific advice on what we will support for your environment.

To give a brief answer to Q 1.) It is not supported for user applications to directly access Infinispan that is included with JBoss EAP for caching for your application. Infinispan that is included with JBoss EAP is for use only by internal JBoss EAP subsystems, and not any user applications.

Please explain the meaning of "direct" (as mentioned above). This would mean you are using infinispan API directly in your code for data object caching something like this

forexample package org.infinispan.tutorial.simple.map;

import org.infinispan.Cache; import org.infinispan.configuration.cache.ConfigurationBuilder; import org.infinispan.manager.DefaultCacheManager;

public class InfinispanMap {

public static void main(String[] args) { // Construct a simple local cache manager with default configuration DefaultCacheManager cacheManager = new DefaultCacheManager(); // Define local cache configuration cacheManager.defineConfiguration("local", new ConfigurationBuilder().build()); // Obtain the local cache Cache<String, String> cache = cacheManager.getCache("local"); // Store a value cache.put("key", "value"); // Retrieve the value and print it out System.out.printf("key = %s\n", cache.get("key")); // Stop the cache manager and release all resources cacheManager.stop(); }

}