Hello
In the previous JBOSS release of 5.1.0.GA, the CacheManager instance could be ontained as follows
{code}ctx.lookup("java:CacheManager");{code}
On JBOSS 6 this lookup returns an instance of org.jnp.interfaces.NamingContext
{code}org.jnp.interfaces.NamingContext {code}
Which causes a ClassCastException.
{code}java.lang.ClassCastException: org.jnp.interfaces.NamingContext cannot be cast to org.jboss.cache.CacheManager{code}
The question is how does one get an instance of CacheManager on JBOSS6. Why does this lookup which worked in the previous version now return a NamingContext object?
Never mind. Just discovered JBOSS 6 has moved to using infinispan's data grid implementation.