1 Reply Latest reply on Apr 11, 2011 9:27 AM by philani

    CacheManager JBOSS6

    philani

      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?