-->
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.  [ 4 posts ] 
Author Message
 Post subject: Accessing Cache for other Cacheable Objects
PostPosted: Tue Feb 22, 2005 8:57 pm 
Newbie

Joined: Fri Oct 08, 2004 3:14 am
Posts: 10
Hibernate version: 2.1

Just a question about cacheing objects other than hibernate objects, collections and queries.

There is a need to cache object maps produced an manipulated during the course of a complex web interaction. I have written a simple hashmap algorithm then discovered that ehCache embedded in hibernate can probably do the same or better.

I'm trying to work out how to get a handle to the Cache object that hibernate is using for it's cacheing so that I can add some of my own wondersomes.

CacheTest in the hibernate src shows some sort of access to a new Cache providor. Is this what I need to do or can I get access to the current configs Cache Providor?

I have searched archives and wikis for the last couple of hours to no avail. Any help most appreciated..


Top
 Profile  
 
 Post subject: Access ehcache directly
PostPosted: Wed Feb 23, 2005 10:31 am 
Regular
Regular

Joined: Thu Dec 18, 2003 2:14 am
Posts: 103
Location: Brooklyn, NY
If you know ehcache will be present, you can access it directly and statically. Don't need to go through Hibernate.


Top
 Profile  
 
 Post subject: Access ehcache directly
PostPosted: Thu Feb 24, 2005 2:25 am 
Newbie

Joined: Fri Oct 08, 2004 3:14 am
Posts: 10
Thank you for the reply. I will try what you are suggesting.


Top
 Profile  
 
 Post subject: Other caches?
PostPosted: Fri Apr 01, 2005 10:30 pm 
Beginner
Beginner

Joined: Thu Nov 20, 2003 8:13 pm
Posts: 31
Location: Newport Beach, CA
And if you're not using EHCache, is there a way to grab the cache through a Hibernate API?


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