-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Support for multiple JbossCache configs?
PostPosted: Tue May 17, 2005 11:21 am 
Newbie

Joined: Tue Apr 26, 2005 7:12 pm
Posts: 1
Does anyone know of a way to deploy multiple JbossCaches each using it's own unique treecache.xml configuration?

I have 3 Hibernate session factories deployed in one Jboss instance. I would like to be able to configure each session factory with it's own unique JbossCache configuration. The second level cache configuration will be different for each session factory. Right now, I don't see how this is possible. Hibernate is searching for a single file, "treecache.xml" by default. Currently, my only option appears to be consolidating all 3 configurations into the one file. I end up with non-applicable regions in each of the 3 JbossCache instances.

If there is currently no solution for multiple unique JbossCache configs are there any plans to support this in the future?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 20, 2005 12:29 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
There are two ways:
1) You say that it searches for a single file named "treecache.xml". That is partially true. More fully, it searches *the classpath* for a recource named "treecache.xml". So simply define seperate loader repositories for your deployments, effectively giving them different class-loaders.
2) Use the DeployedTreeCacheProvider. This lets you deploy the TreeCache instance as MBeans themselves and then have Hibernate use those deployed instances.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.