-->
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: Hibernate 2.1/JBoss3.2.3 mult-host or vhosting
PostPosted: Sat Mar 06, 2004 6:20 pm 
Beginner
Beginner

Joined: Tue Dec 30, 2003 1:51 pm
Posts: 49
Location: Michigan, USA
Hello,
Been a while since i have had to post anything! Hibernate is working GREAT!

My question/issue is I have successfully deployed an app using hibernate on a jboss install and have a few other webapps that i am in the process of migrating to hibernate.

Since the first app has hibernate deployed as a SAR, I shouldn't have to re-wrap or create another SAR for each app(correct)?

I should only need to generate a new MBean for the new webapp(correct)?

There is nothing in the hibernate docs on this and i couldn't find a ref in the forums. If this has been covered already please let me know what the link is.

Best regards,

Jason


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 06, 2004 7:41 pm 
Senior
Senior

Joined: Tue Nov 25, 2003 9:35 am
Posts: 194
Location: San Francisco
If your applications share a common Hibernate schema, then you could have one Hibernate related SAR and therefore one SessionFactory bound to JNDI.

If you have multiple schemas, then have multiple SARs and SessionFactories.

You have to watch JBoss class loading issues. To isolate the applications from interferring with each other, have the Hibernate SARs in EARs and use the loader-repository in the jboss-app.xml.

The core Hibernate classes could go in server/default/deploy/lib - otherwise they will end up in each EAR.


Sherman


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 06, 2004 7:56 pm 
Beginner
Beginner

Joined: Tue Dec 30, 2003 1:51 pm
Posts: 49
Location: Michigan, USA
wonderful, thanks for the advice sherman. i will give it a try.

regards,

jason


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.