JBoss Community

Re: ClassCastException with Infinispan using multiple applications

created by Paul Ferraro in JBoss AS 7 Development - View the full discussion

Try this:

 

@FooCache
@Produces @ApplicationScoped
Cache<String, Foo> fooCache() {
    return container.<String, Foo>getCache("foo").getAdvancedCache().with(Foo.class.getClassLoader());
}

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community