3 Replies Latest reply on Dec 14, 2009 4:08 PM by Richard Kennard

    @Cache annotation for injecting POJO cache?

    Richard Kennard Novice

      Hi guys,

      Manik from the JBoss Cache team suggested (http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4270050#4270050) I post this question here.

      I've just started using JBoss Cache, and found that you need to use...

      CacheManagerLocator.getCacheManagerLocator().getCacheManager( null ).getCache("my-cache")

      ...to look up the cache from inside a JBoss AS 5 app. Possibly Infinispan has a similar mechanism. It'd be nice if this was injectable instead. For example:

      private Cache<Object, Object> mMyCache;

      Are there any plans to support that?