Lookup CacheManager from a RESTeasy JAX-RS resource is not working, but it works from a servlet in JBoss EAP 5.x

Solution Verified - Updated -

Issue

We are using JBoss Cache and trying to retrieve values from our cache by using JNDI lookup for our CacheManager; It works from a Servlet, but it's not working from a RESTEasy resource method, it always return null. What is the problem?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content