-->
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: two directory providers in a application
PostPosted: Wed Jan 13, 2010 4:04 am 
Newbie

Joined: Thu Jan 08, 2009 9:23 am
Posts: 9
Hi,

Is it possible to have both RAMDirectoryProvider as well FSDirectoryProvider in a application?
And if I choose only RAMDirectoryProvider, and some how server goes down then what's the way to recover the indexes back into the memory?

Is there any way to read the indexes in FSDirectoryProvider to RAMDirectoryProvider ?

Regards,
Sourabh

_________________
sourabh


Top
 Profile  
 
 Post subject: Re: two directory providers in a application
PostPosted: Wed Jan 13, 2010 9:36 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi Sourabh,

In case you are thinking about using the RAMDirectoryProvider out of performance reasons over the FSDirectoryProvider you should read viewtopic.php?f=9&t=1000523

RAMDirectoryProvider is great for testing scenarios, but for actual application deployment FSDirectoryProvider should be used. Not at least because there is no way to recover a RAM index in case a machine goes down.

--Hardy


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.