On 15/09/2010 04:46, Alec Swan wrote:
> Could anybody explain what is the advantage of configuring JNDI resources
> using GlobalNamingResources in server.xml over configuring them in
> TOMCAT/conf/context.xml?

If configured in global, 1 db pool is created and then referenced/shared
by multiple apps.

If configured in conf/context.xml it is a base config for each app, so
multiple pools are created.  You probably don't want that.


p


> On Tue, Sep 14, 2010 at 4:36 PM, Mark Thomas <ma...@apache.org> wrote:
> 
>> On 14/09/2010 23:33, Alec Swan wrote:
>>> Thanks, I'll give it a try.
>>>
>>> Still kind of curious if GlobalResources override resources in
>>> META-INF/context.xml, but I guess I will find that out soon.
>>
>> They are in different JNDI name spaces so no. (which is why you need to
>> use a ResourceLink)
>>
>> Mark
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
> 

Attachment: 0x62590808.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to