[jboss-dev-forums] [JBoss AS 7 Development] - Re: ClassCastException with Infinispan using multiple applications
Paul Ferraro
do-not-reply at jboss.com
Sat Nov 19 09:23:27 EST 2011
Paul Ferraro [http://community.jboss.org/people/pferraro] created the discussion
"Re: ClassCastException with Infinispan using multiple applications"
To view the discussion, visit: http://community.jboss.org/message/637306#637306
--------------------------------------------------------------
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
[http://community.jboss.org/message/637306#637306]
Start a new discussion in JBoss AS 7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111119/ed7c83e9/attachment.html
More information about the jboss-dev-forums
mailing list