-->
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.  [ 4 posts ] 
Author Message
 Post subject: Multiple DataBases
PostPosted: Mon Jan 31, 2005 11:38 am 
Newbie

Joined: Mon Jan 31, 2005 11:33 am
Posts: 8
Location: Netherlands
Hi,
In our Application the user is allowed to selects a database from a list during logging procedure. This database would be used for all CRUD operations for the user until he is logged out.

Is there a way to configure Hibernate at runtime...hibernate.cgf.xml doesn't help us in choosing DB at runtime !

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 31, 2005 11:59 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
You can configure it everything through the Configuration object.

load hibernate.cfg.xml for your default settings
and simply set the "user-overwritten" parts on the configuration object.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 31, 2005 12:19 pm 
Newbie

Joined: Mon Jan 31, 2005 11:33 am
Posts: 8
Location: Netherlands
[quote="max"] Thanks Max, I was wondering if I could use WSAD Server declared DataSources instead of all the configuration tags and info


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 31, 2005 12:50 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
sure hibernate supports datasources

_________________
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.  [ 4 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.