tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Setting Java property inside a webapp
Date Wed, 14 Nov 2007 21:41:08 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kaj,

Kaj Kandler wrote:
> Trickily I can't change the library (forgot to mention that), so I have
> to depend on the property value and can't change it to a JNDI lookup.
> 
> Well, I did the following:
> As I use Spring anyway, I created a bean property, that if set will also
> set the JVM property, not too great, but should work, as the value is
> global for all in the tomcat.
> 
> Any objections to this?


That's pretty much exactly what I suggested, except that you are using
Spring to do it instead of JNDI tricks to get things done.

Hackish? Yes. Useful? Yes!

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHO2tz9CaO5/Lv0PARAj0bAJoDXr/el0RtRM4c3hTlvlLbD4OB7gCfaPIR
xUuwgKdjAjn9oQPHMuKPq2U=
=XDfm
-----END PGP SIGNATURE-----

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


Mime
View raw message