-->
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: Multiple Hibernate 2.1.1 SARs w/ JBoss 3.2.3
PostPosted: Tue Feb 17, 2004 4:16 pm 
Regular
Regular

Joined: Tue Dec 09, 2003 2:39 pm
Posts: 106
Location: Toronto, Canada
Reference: http://www.hibernate.org/66.html

Question:

Suppose we have a need for another Hibernate SessionFactory that communicates with a mutually exclusive datasource and our application server is JBoss 3.2.3.

Is it possible for JBoss to have more than one Hibernate SAR, and are there any special configurations I need to consider? Or is it just a matter of changing the MBean name and the datasource value in the jboss-service.xml?

Both SARs depend on the same domain objects in a separate JAR and have the same HBM mapping files.

Thanks,
Roll


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 17, 2004 4:28 pm 
Beginner
Beginner

Joined: Sun Oct 26, 2003 11:21 pm
Posts: 27
You don't even need multiple SARs, just multiple MBean entries in your jboss-service.xml.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 17, 2004 7:58 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Using multiple Hibernate MBeans is no problem as long as the MBean names are different.


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.