-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Mark,

On 11/26/14 12:01 PM, Mark Thomas wrote:
> On 26/11/2014 16:23, Christopher Schultz wrote:
> 
> <snip/>
> 
>> 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.

I am aware of the localDataSource attribute but (evidently wrongly)
assumed that it was for use when both the data source and realm were
configured for the webapp and not globally (that is, the local Realm
needed to be configured for a local data source, instead of a global one).

> 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 DataSources.

Noted.

I'm still interested in the OP's need for a custom Realm and, if
required, why the DataSourceRealm can't be used as a base to avoid the
need to deal with this stuff at all.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUdhotAAoJEBzwKT+lPKRYiasP/1CQ6nZlJG3Sd50VQV+Cilye
IcFNG7ckLIEqE0wR+KMpw+a68K2foKfgJ7CT2VzLFcWU7N1cotAjQdThKUB/1tZR
NUH5bYiQcPxaAzXTLS9JnupYoqwqJiLt6yQiJWi07KiIfQjSnafS0vuFoc+o1j+G
p5j5N+pAE5U8rznBguIWlpBfaFTH9AHxduZdcbzU+AefC8fGYr73uPfpEw8+qHoz
aV0kwPaEneGuswAcyRjU4DRljG9TOHqd00We4NcgVc/wgixaGkcOr7GtOY/KqEXY
lihq+NIvqmr9MFUvA8f7qj2oHjnwF8ml1tFo6TpzqI/5gbF66MtC/r0svNk/vrya
n9GxW8o6uxk07Tndqw4ygM6FlCZYb4rr6Jmo8kiDCcR65fhEAjrmFW4OX1AxrCkU
eWo3++6iH/5xjf2jPVJ2BPf2y+4qM0Kvc/vOJnNIG1a21x2WJBl/pny4ChslSfbc
vjQF6vIB9cCyGhvlVR7kxGwo2UyLU9vDNCQslDn9/DbqpUDiDltCalTJw7c4nLVI
ty1AtYtQditgiv28UwvBt2ZwfP+kKsd5of18yqIyFfX815wc9ljIEfuM66hjU8s+
DqQDCSDU/B7ICGC5dP/HhLJf4wLW+A75hztFBtSM3Qx8+yW7VuIkxIx3Dhwivo4N
54q7cBdEFQNLLmlrnnpa
=wZWd
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to