tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: How can code in a Realm gain access to a Globally Named Resource
Date Wed, 26 Nov 2014 17:01:27 GMT
On 26/11/2014 16:23, Christopher Schultz wrote:


> I'm not sure, but I would guess you can't define a Realm in server.xml
> and use a DataSource defined in context.xml. If the Realm is in
> server.xml, then you should be able to grab the globally-accessible
> DataSources by using their existing (global) names.

You guess wrong.

Look at the localDataSource attribute for the DataSourceRealm.

If you (or the OP) then look in the source code for where that attribute
is used, you'll see how the Realm switches between global and local


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message