-->
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: fault-tolerant cache
PostPosted: Wed Oct 05, 2005 6:46 pm 
Newbie

Joined: Wed Oct 05, 2005 6:36 pm
Posts: 2
Hi,

I am new to Hibernate and was wondering if it is possible to create a write-only cache that is fault-tolerant.
Here is my need :
- my application makes no reads from the database (or everything is already cached)
- all writes to the database should be fault-tolerant, i.e. if the DB connection is not available (DB down) then temporarily store the writes on disk.
- when DB connection is back, flush all the writes that could not happen because the DB was down.

Does such a cache feature already exist?

Thanks for your help.

Julien


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 06, 2005 3:36 am 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
Try JMS to send updates using persistent messages, hibernate fires events on update it may help to implement messaging .


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 06, 2005 9:48 am 
Newbie

Joined: Wed Oct 05, 2005 6:36 pm
Posts: 2
Thanks for your help.
That's the answer I was fearing. Is there really no other solution that using the JMS heavy artillery?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 06, 2005 10:33 am 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
As I understand caches do not know how to update database and you need some kind of replication not cache. I think JMS is a good way for custom replication, but all database vendors have some solution to replicate data for typical use cases too.


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.