-->
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: Multiple datasource best practice with JBoss 3.2.6
PostPosted: Thu Nov 18, 2004 12:39 pm 
Regular
Regular

Joined: Tue Dec 09, 2003 2:39 pm
Posts: 106
Location: Toronto, Canada
Problem:

We have multiple datasources all sharing the same schema and domain model.

We are using multiple session factories currently deployed as separate MBeans in JBoss.

The use case is that a user may select the specific datasource subject matter to work with, blah, blah, blah...

However, although this works, looking a little deeper it would seem wiser to pass in connection information to a single session factory since all the databases share the same schema, eliminating the need to manage multiple session factories.

Questions:

1. Does this approach seem reasonable?
2. What are the implications (2nd level cache, etc.)?
3. Anyone have experience doing this with JBoss (i.e. How to configure SAR)?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 19, 2004 3:53 am 
Newbie

Joined: Thu Nov 18, 2004 4:40 am
Posts: 8
hi,
I am new to this forum. I am using tomcat and mysql. I want to connect to multiple databases, providing switching between them. I am using multiple sessionfactory but could not able to switch.

Can anybody give me a sample code for this.

Apologies for posting my query in another forum. the forum is locked.

Thanks


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.