-->
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: Newbie: Multiple instances of application in Tomcat
PostPosted: Fri Oct 03, 2008 4:17 pm 
Newbie

Joined: Fri Oct 03, 2008 3:51 pm
Posts: 1
Hi!

Can Hibernate (v3+) be used in a Tomcat (v5+) environment, where multiple instances of the application are running in the same Virtual Machine? (different instances of the application are pointing to different databases.) Wouldn't the two instances share the same second level cache?

Thank you in advance!

Sam


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 03, 2008 4:46 pm 
Expert
Expert

Joined: Mon Nov 26, 2007 2:29 pm
Posts: 443
Quote:
Can Hibernate (v3+) be used in a Tomcat (v5+) environment, where multiple instances of the application are running in the same Virtual Machine?

Yes

Quote:
Wouldn't the two instances share the same second level cache?

Not unless you were clusterig or something. Just make sure that the disk overflow directories (by default java.io.something, if you are using ehcache) don't ovwelap

_________________
Gonzalo Díaz


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.