This content has been marked as final.
Show 2 replies
-
1. Re: Infinispan - CDI Producer Method
pferraro Feb 14, 2013 4:51 PM (in response to jacktrades)Why not inject the cache instance itself?
{code}public class Resources implements Serializable {
@Resource(lookup = "java:jboss/infinispan/cache/appcache/pagination")
private Cache<Integer, Ad> cache;
@Produces
@ApplicationScoped
public Cache<Integer,Ad> producesCache(){
return this.cache;
}
}{code}
-
2. Re: Infinispan - CDI Producer Method
jacktrades Feb 14, 2013 6:31 PM (in response to pferraro)Wonder, why one doesn't find in books stuff like this