-->
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: Second Level cache with multiple session factories in one ap
PostPosted: Tue Aug 04, 2009 5:15 am 
Newbie

Joined: Tue Aug 04, 2009 4:39 am
Posts: 2
Hello,

I want to split out my logical database in two fysical databases: one optimized for
writing, and one optimized for reading.
Therefore, I will have two session factories withing the same application.

Will these session factories share the same second level cache ?
Stated otherwise, is the second level cache on SessionFactory level, or on JVM level ?

If it is on SessionFactory level, can it be made to work on JVM Level ?

Regards, Ron


Top
 Profile  
 
 Post subject: Re: Second Level cache with multiple session factories in one ap
PostPosted: Tue Aug 04, 2009 8:32 am 
Newbie

Joined: Tue Aug 04, 2009 4:39 am
Posts: 2
Hello,

Some googling later I think I can answer my own question: If you want to have
multiple session factories in a JVM use the same cache instance, you can use
for example the SingletonEhCacheProvider.

Your welcome Ron !

Regards, Ron


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.