-->
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.  [ 3 posts ] 
Author Message
 Post subject: Cache With Multiple SessionFactory
PostPosted: Thu Sep 03, 2009 12:08 am 
Newbie

Joined: Wed Sep 02, 2009 8:43 am
Posts: 1
Hi
In my application there are multiple databases.
I have configured eh-cache with hibernate.
but my problem is how to distinguish cache for different session factory.
I have added
<prop key="hibernate.cache.region_prefix" >{appId}</prop>
but problem is that it will only create different cache regions.
so how my application will identify that which region belongs to which sessionFactory?

plz reply


Top
 Profile  
 
 Post subject: Re: Cache With Multiple SessionFactory
PostPosted: Fri Sep 04, 2009 6:04 am 
Beginner
Beginner

Joined: Wed Nov 19, 2008 6:39 am
Posts: 44
Location: Mumbai, India
I didn't get your question. Anyway Only One SessionFactory per application.

_________________
Thx,
Murugesan.
Web: http://www.murugesanpitchandi.com


Top
 Profile  
 
 Post subject: Re: Cache With Multiple SessionFactory
PostPosted: Fri Sep 04, 2009 6:50 am 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
Quote:
o distinguish cache for different session factory


You'd have to do this programatically.

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


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