I don't think that's weird at all. I've always had applications select the
database they connect to at run time, not deployment time. 
This seems like a major problem to me, with consequences on regression
testing etc...
It makes no sense to have two identical applications deployed with different
datasources.xml, just so the end user can decide which DB to connect to.
I can see why it's easier to have it that way from the server end, because
you don't have to worry about switching a datasource on an active bean, but
that's short sighted.
J.D.

-----Original Message-----
From: Stephen Davidson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 09, 2001 5:06 PM
To: Orion-Interest
Subject: Re: Multiple data sources for each application


You can also create them programmatically, and then bind
them to the JNDI tree.  But unless you are doing something
really weird (I am working on one such app, multiple database
schema with identical tables), I would recommend the approach
  that Jeff is advocating.

-Steve

Jeff Hubbach wrote:

> It's at the application level. You specify a data-sources.xml file in the
> orion-application.xml, and this can be a different data-sources.xml file
> for each application.
> 
> Jeff.
> 
> On Tue, 09 Oct 2001 09:46:52 -0400
> "Doshi, Gunjan" <[EMAIL PROTECTED]> wrote:
> 
> 
>> I believe it is at the server level.
>> I put all the datasource declarations in data-sources.xml file in config
>> directory and it works great.
>> I never tried using the global datasource.xml file
>> Gunjan
>> 
>> -----Original Message-----
>> From: Setlur, Atul (MED) [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, October 08, 2001 8:17 PM
>> To: Orion-Interest
>> Subject: Multiple data sources for each application
>> 
>> 
>> Does Orion support specifying of the data-sources at the application
>> level? i.e., for each application (ear) specify the database connection
>> pool settings within it vs. the global data-sources.xml configuration
>> file.
>> 
>> Thanks,
>> -Atul
>> 
>> 
>> 



-- 
Stephen Davidson
Java Consultant
Delphi Consultants, LLC
http://www.delphis.com
Phone: 214-696-6224 x208


Reply via email to