[jboss-user] [JBoss Cache: Core Edition] - Re: Bind cache with jndi

mircea.markus do-not-reply at jboss.com
Thu Jun 4 03:44:20 EDT 2009

anonymous wrote : So my question is : is it possible to bind the cache to the jndi. If it not the case, how can i share it between several webapps or application. 
If you're using the cache in replicated mode, the way to do it is by creating a replicated cache instance in each JVM that needs to access shared state, each such instance pointing to same jgrousp channel. If you're using the cache in LOCAL mode, one way to do it is by using a central CacheLoader (e.g. FileCacheLoader or JdbcCacheLoader), and all caches to share access to it. Though, making a LOCAL cache bindable to JNDI *might* not be a bad idea, as this is a common practice to share objects between applications - opinions?

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

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235180

More information about the jboss-user mailing list