-->
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.  [ 3 posts ] 
Author Message
 Post subject: Regions with OSCache
PostPosted: Wed Dec 03, 2003 7:12 pm 
Newbie

Joined: Fri Nov 21, 2003 8:06 pm
Posts: 7
In looking through the various caching options available, I noticed that OSCache does not specify multiple cache regions like JCS or ehcache do. Then, in looking through the mail archives, I found this post from Gavin:

Quote:
It looks like this is not possible
with oscache, or swarmcache, so what I would
suggest is that we adopt a convention where
oscache-foo.Bar.properties is the properties file
for the oscache region foo.Bar. Then, perhaps,
oscache.properties would be a "fallback" with
defaults, in case there is no config for that
specific region.


Does this mean that OSCache support has been/will be implemented such that cache regions can be specified for each type of Hibernate-aware object?

Furthermore, how does this interact clustering support? It appears that the only way to have OSCache support multiple cache regions is by actually having multiple caches, each corresponding to a particular class of Hibernate-aware objects; but in the OSCache documentation it looks like if you want to use its clustering support (via multicast), then you have to specify a different Multicast IP address for each cache you use.

So are regions properly working using OSCache? And if so, does that information propogate properly across a cluster?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 03, 2003 8:40 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
OSCacheProvider implements regions. You specify properties in oscache.properties by qualifiying the config parameters by the region name.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 04, 2003 4:27 am 
Newbie

Joined: Fri Nov 21, 2003 8:06 pm
Posts: 7
Thanks for the tip - has this made its way into the docs yet? Also, do you need to specify a different multicast address for each region in order to update the cache across a cluster?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.