-->
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: Sharing a single Hibernate instance: Tomcat 5.5
PostPosted: Thu Feb 16, 2006 11:10 am 
Newbie

Joined: Mon Jul 25, 2005 6:25 pm
Posts: 2
I have a series of applications which all use Hibernate and, at the moment, exist in the same Tomcat 5.5 container. As each app is in a different context Hibernate is deployed and loaded by the container for each app. The disadvantage of this is that the 2nd level cache must be disabled or at least minimized to ensure consistency across the contexts.

Is it possible to make a single hibernate instance available at the container level within Tomcat and access session factory across multiple contexts? If so, are there any examples out there (two days of searching and nothing!!!)

A better question might be: is there a better method for sahring a Hibernate instance given the Tomcat constraint?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 16, 2006 12:04 pm 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
Probably you can deploy all applications in the same context if you must share things.


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.