-->
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: Write to 2nd Level Cache, but NOT DB
PostPosted: Fri Dec 12, 2008 4:21 pm 
Newbie

Joined: Mon Nov 28, 2005 12:08 pm
Posts: 3
Is it possible to configure Hibernate to write to the second level cache, but not the database? CacheMode doesn't really have a value that pertains to this, but I was also thinking of writing an interceptor to change the cache behavior.

Reason
We currently receive messages from another system in which we consume and put in the database with Hibernate. We use Coherence for the 2nd level cache. Some of our data that currently resides in the database doesn't technically need to be in the database since it is transitive, but we would like to continue using Hibernate as a common interface for managing the data. We could use Coherence directly, but would rather utilize SQL and the Hibernate layer instead of gets/puts of Coherence. In a sense, Hibernate and Coherence would look like an in memory DB.


Top
 Profile  
 
 Post subject: This would be very helpful!
PostPosted: Tue Dec 16, 2008 5:21 pm 
Newbie

Joined: Fri Jun 16, 2006 9:59 am
Posts: 11
I am looking for a similar solution... No real replies on this though, huh?


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.