-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ramesh,

Ramesh Narayanan (ramesnar) wrote:
| Thanks for your reply. I was thinking the Tomcat would parse
| the XML and store it in its internal datastructures/beans but how
| terribly wrong I am!

No, Tomcat does do that. But it uses the commons-digester to accomplish it.

| I also thought about using JMX to load/reload these
| properties once parsed from server.xml file. I was scourging the tomcat
| API documentation yesterday and I knew it used Commons digester to parse
| the config file, but I didn't knew it didn't  build java objects after
| parsing.

It must build some of them.

| So, I understand, the good old kludgy String manipulation is the ONLY
| good approach here and here I am off to do that stuff.

I don't find it klugey at all, actually. I use parameterized server.xml
files for all my projects and use ant to merge the local configuration
into them (things like port numbers, etc.). It seems to work quite well
for us.

- -chris

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

iEYEARECAAYFAkgrKJoACgkQ9CaO5/Lv0PCZJgCeII857NC3NHmo1E/5LYq9A0JX
MFwAoLkyQOpP3/wEegPf8QroNuS2cdMm
=tw6u
-----END PGP SIGNATURE-----

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

Reply via email to