[jboss-user] [JBoss Cache] - Custom eviction using JndiMultiplexedJBossCacheRegionFactory

Galder Zamarreno do-not-reply at jboss.com
Wed Apr 14 05:51:36 EDT 2010

Galder Zamarreno [http://community.jboss.org/people/galder.zamarreno%40jboss.com] replied to the discussion

"Custom eviction using JndiMultiplexedJBossCacheRegionFactory"

To view the discussion, visit: http://community.jboss.org/message/537335#537335

Even thouh the jbosscache sar comes with some sample configurations such as mvcc-entity, nothing stops you from copy/pasting that file, producing a new one and adding your  mvcc-entity-custom there. Once you have the file there, you can do several things:

1. Use a SharedJBossCacheRegionFactory as per docu and configure hibernate.cache.jbc.cfg.shared property with the location of the new configuration file.

2. Carry on using JndiMultiplexedJBossCacheRegionFactory, in which case you need to go to the CacheManager started by the server and made the modificatioins there.

If you want the cache to be deployed per application, you wanna be using option 1.

Again, this is all very clearly explained in   http://www.jboss.org/file-access/default/members/jbossclustering/freezone/docs/hibernate-caching/3.5/en-US/html/configuration.html#sessionfactory-factories http://www.jboss.org/file-access/default/members/jbossclustering/freezone/docs/hibernate-caching/3.5/en-US/html/configuration.html#sessionfactory-factories


Reply to this message by going to Community

Start a new discussion in JBoss Cache at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100414/595f35be/attachment.html 

More information about the jboss-user mailing list