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

Twinsen,

Ho Fat Tsang wrote:
| public class TestThread extend Thread
| {
|      public void run()
|      {
|            System.out.println("Invoking shutdown");
|      }
| }
|
|   The hook is executed ONLY when i press CTRL+C using console but it
is not
| desired solution as my projects required it should run under service /
| daemon mode.

Are you sure that System.out is going somewhere predictable when you run
Tomcat as a service? Can you see other Tomcat shutdown information?

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

iEYEARECAAYFAkfs90wACgkQ9CaO5/Lv0PCoGQCeOdtgHF0h6ezUFfzTZj8qdKwW
+l4AmwcJHvMIX9+waoWT42hlC0Gtmbk6
=uBuo
-----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