-->
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 datasources\databases
PostPosted: Wed Nov 17, 2004 8:24 am 
Newbie

Joined: Wed Nov 17, 2004 8:16 am
Posts: 1
Hi,

I have an application that has several datasources (different MSSql
servers and schemas)
I would like to have a single hibernate schema that will apply to all.
is that possible ? or I would be required to perform multiple mappings,
one per database.
Is there an option to work with a connection pool or something of that sort ?
If there is a better way to manage the connections definition I'd be happy to hear of it, since the datasources give me trouble anyway, they are defined staticaly and I cannot add a database to the application dynamically. (I must apply configuration changes).

I'm using JBoss 3.2.6, Hibernate 3.0, MSSql 8.0, Win2K server

Any help will be appreciated,
thanks

[b]Hibernate version:[/b] 3.0

[b]Name and version of the database you are using:[/b] MSSql 8.0


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 17, 2004 3:37 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hmm ?

You can of course have one set of hbm.xml files that you just use with multiple SessonFactories and different hibernate.properties or hibernate.cfg.xml to control which database they will connect to.

_________________
Max
Don't forget to rate


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.