tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: <resource-ref> in web.xml
Date Thu, 18 Apr 2013 22:01:05 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Jakub,

On 4/17/13 9:22 PM, Jakub 1983 wrote:
> can I define database connection only in web.xml, without using
> context.xml files ?
> 
> can I pass database url, login and password into <resource-ref> ?
> 
> when I define database conn in context.xml, resource-ref is not
> needed at all, so what is it actually for ?

If you define your database configuration in server.xml, you'll have
to map from global to local scope. You don't need to do this with
context.xml because the scope is -- by definition -- already local.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJRcG0gAAoJEBzwKT+lPKRY39QQAMwYNsmxVpMDYyZ89lZd5b3v
uwfxk3gzMAQq+vQsF0dQIhhV0H62ks6VTdlR7+nnnGcAVvH+LHd+m92Fp1K7rXJX
RDcqNxULYwfxYewHdDJtDLFtU2IGzJzLl7qwTROh7NSVFljPeqWfIjjyEVQR/NtJ
Xumdo2+EUW+D53r/M/UciugxgzGyWSCUt5/tiXfxKIJNWUkY8SV3SPjNCTo1ebyK
V9jv6YUNilSyI5DpUJHzgZRzgr4OgvniwBdN8HVmUxY27XMDWZgByUHwTqssurJs
LfA1EdgHiN8zPmewu+z0O30e/I+t4oso1ShmQYw4A/OYCblbgrknk3w90IBpauG6
1PUIzagZRXLyFzBoAaCnZPHwBcvh694b2SgQH61+9Tcv8eSuVEIp90C3+jv2Jxyt
/gnvUjaWoNoZ1fPBnqGv4T8U8lgaHVTVm1HKIrHc/k2OoV2rphxSYk2zkLSF6tMX
2VwLoQIMeFFa81XLbMJZfQ4yOJKLNdcV8Mmyo9G7YOv38VokUhVSMX4BllH8q9Nw
Usx1fjSkjL2A4sSJS0UsvgD/tVgzgbQH6DeMaKo5rVpvZRe6a5FsGS2V9J0nHcLw
JDY1YTkSCrHuJzM+a2th2PryVOmQRsBjv1tT5ztaVKfIaJU3WDqFk0+0ykRUecBd
RAugi25aK/Ela88Cq7/+
=H1Uy
-----END PGP SIGNATURE-----

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


Mime
View raw message