Sorry, I'm replying to my own post.  I'm afraid it got lost in all the spam
over the past couple of days :)

Is what I am trying to do just not possible?

>I am putting the global data sources in server.xml, and I am putting the
>resource links in each virtual hosts's ROOT.xml.  What I mean by changes is
>if I add a new database that 25 virtual hosts need access to, I don't want
>to have to put resource links in 25 files.  It may seem a little
>unreasonable that it would cause us so much trouble to do that, but we have
>a pretty fast moving/changing environment.



-----Original Message-----
From: Parsons Technical Services [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 13, 2005 6:39 PM
To: Tomcat Users List
Subject: Re: Sharing Data Sources

Just to clarify something: Where are you specifying the global data sources?
In server.xml or ROOT.xml?

It should be in root. Just checking.

Second, what do you need to change? There is very little in the link to 
begin with. Since the change would affect all apps then I couldn't see 
needing to change anything of the link. Just change the global but leave the

name the same.


Doug

----- Original Message ----- 
From: "Cook, Jared" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
Sent: Friday, May 13, 2005 10:08 AM
Subject: RE: Sharing Data Sources




That's what I am doing, but I want to avoid having to do that.  I would
rather have it all in one file so when I need to make changes I only have to
do it once.



-----Original Message-----
From: Pfingstl Gernot [mailto:[EMAIL PROTECTED]
Sent: Friday, May 13, 2005 1:32 AM
To: Tomcat Users List
Subject: AW: Sharing Data Sources

Did you try to define your datasource in <GlobalNamingResources>? And then
you only have to define a resource-link in your contexts.

-----Ursprüngliche Nachricht-----
Von: Cook, Jared [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 12. Mai 2005 21:23
An: 'tomcat-user@jakarta.apache.org'
Betreff: Sharing Data Sources



I have a lot of virtual hosts that need access to a lot of the same
databases.  Security isn't an issue because they are all trusted sites.  I
would like to be able to share the ResourceLinks across all the virtual
hosts without having to have them all defined in every ROOT.xml.  Is there a
way to include a file in all my conf files?  Is there a way to globally
share out these datasources?

Thanks.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to