-->
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.  [ 1 post ] 
Author Message
 Post subject: Exposing the cache
PostPosted: Wed Sep 03, 2008 5:45 pm 
Beginner
Beginner

Joined: Wed Apr 20, 2005 9:30 am
Posts: 39
Hibernate version: 3.2.6ga -> 3.3.0 sp1

It may just be bad programming on my part, but I was reusing the cache that hibernate created on startup. I would use the getCacheProvider method of Settings class. It didn't make sense (at the time) to have two caches running around, and wanting to keep the overall 'application' fit-and-trim. We made sure our 'region' naming wouldn't collide with Hibernate and only put like two objects in it, which is why we didn't consider it a big deal to reuse the existing cache.

Now I see in 3.3.0 that the getCacheProvider method has been dropped from the Settings class and the CacheProvider class is deprecated.

Is there a better way to gain a reference to the cache? If not, I suppose this means I'll just need to fire up more than one instance cache, which seems like so much more than I need.

Any thoughts would be most appreciated.

J --


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

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.