-->
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: Best Practices for multiple Web Applications and Hibernate
PostPosted: Wed Jun 01, 2005 11:13 pm 
Beginner
Beginner

Joined: Wed Jun 01, 2005 6:51 pm
Posts: 27
Location: Philippines
Hibernate version:2.1.6

I have Tomcat 5.0 and multiple webapps. Several of the webapps share data in a database accessed through Hibernate.

What are the ramifications of putting Hibernate and required supporting jars in /common/lib/ ?

If Hibernate is in /common/lib/ I assume we need to put hibernate.properties in /common/classes/ for the shared access, but I don't see how hibernate.properties can be used to configure more than one source.

is there a best practices document? wiki?

_________________
Mike "Ollie" Oliver


Top
 Profile  
 
 Post subject: No best practices established how about...
PostPosted: Fri Jun 03, 2005 5:18 pm 
Beginner
Beginner

Joined: Wed Jun 01, 2005 6:51 pm
Posts: 27
Location: Philippines
Given multiple web applications in tomcat, how can we

1) Use One Session Factory?
2) avoid use of /common/lib/ common loader?
3) define hibernate.properties for each webapp?
4) if /common/lib/ needed to be the location for hibernate.jar, then how can webapps utilize hibernate.properties as when hibernate is loaded by the common loader the hibernate.properties in the webapps are ignored.

_________________
Mike "Ollie" Oliver


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.