-->
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.  [ 5 posts ] 
Author Message
 Post subject: Sharing hibernate mapping between tomcats
PostPosted: Sat Jan 19, 2008 7:40 am 
Newbie

Joined: Sat Jan 19, 2008 7:25 am
Posts: 3
Location: Oslo
Hibernate version: 3

Mapping documents: xml

Name and version of the database you are using:mysql

Hi.

Our problem is that we have too many threads for only one tomcat. We thinking about sharing load between 2 (maybe 3) instances of tomcat.
Does someone have an idea about how we could share the persistence between them.

Would it be better to share a library for both tomcats or remote calling or something else?

Thanks for any help.

_________________
Best regards

Geo


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 19, 2008 1:48 pm 
Expert
Expert

Joined: Mon Nov 26, 2007 2:29 pm
Posts: 443
Consider that OSIV will require you to do all the work within the same thread, in order to keep the session alive.

_________________
Gonzalo Díaz


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 19, 2008 2:56 pm 
Expert
Expert

Joined: Tue Nov 23, 2004 7:00 pm
Posts: 570
Location: mostly Frankfurt Germany
You might replicate your cache if required. Apart from this you can run two instances of the application.

_________________
Best Regards
Sebastian
---
Training for Hibernate and Java Persistence
Tutorials for Hibernate, Spring, EJB, JSF...
eBook: Hibernate 3 - DeveloperGuide
Paper book: Hibernate 3 - Das Praxisbuch
http://www.laliluna.de


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 19, 2008 3:09 pm 
Newbie

Joined: Sat Jan 19, 2008 7:25 am
Posts: 3
Location: Oslo
First, thank you for this fast reply.

LaLiLuna wrote:
You might replicate your cache if required. Apart from this you can run two instances of the application.


I'm not very familiar with this. How can I replicate cache on different tomcat instance or different server?
Is it a cluster? Can you point me to some doc?

Thanks a lot.

_________________
Best regards

Geo


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 19, 2008 3:14 pm 
Expert
Expert

Joined: Tue Nov 23, 2004 7:00 pm
Posts: 570
Location: mostly Frankfurt Germany
most of the caches support cluserting. Have a look at the documentation of ehcache, jboss tree cache.

_________________
Best Regards
Sebastian
---
Training for Hibernate and Java Persistence
Tutorials for Hibernate, Spring, EJB, JSF...
eBook: Hibernate 3 - DeveloperGuide
Paper book: Hibernate 3 - Das Praxisbuch
http://www.laliluna.de


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