How to configure an application cache within the EAP configuration when using embedded JDG inside EAP6

Solution Verified - Updated -

Issue

  • I want to separate the cache configuration from the application deployment and configure JDG caches inside the standalone or domain xml files, is this possible?
  • Is it possible to bind an embedded cache manager after the application is initialized to the global JNDI context and use that reference to access the caches from a different application deployed at the same EAP server instance?
  • How can I bind a cache manager, created in embedded mode from my application, to JNDI the same way as it is possible via EAP standalone or domain configuration?
  • How to use an embedded JDG cache from multiple applications?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
  • Red Hat JBoss Data Grid (JDG)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In