Guillaume, we've been discussing best practices for sharing Cache instances 
between apps and currently, the best way to do so from AS is explained in 
http://tinyurl.com/lq688t, section 11.2. Paraphrasing Brian Stansberry, the AS 
Clustering Lead:

anonymous wrote : 1) Use the CacheManager to create your cache; the 
CacheManager is available in JNDI at java:/CacheManager. See Section 11.2.1.
  | 
  | 2) Use CacheJmxWrapperMBean and it's "cache" mbean attribute. Simplest way 
is to deploy it via a -service.xml. Section 5.4.2 of JBC 3.1 docs at 
http://tinyurl.com/m49qen has other methods.

Either of those two methods should allow you to access a single Cache instance 
from any apps deployed in AS. This is recommended instead of your temporary 
solution. If you go over to the cluster dev list, you'll find a more detailed 
explanation from Brian himself.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237888#4237888

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237888
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to