-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 André,
On 11/17/2010 4:50 PM, André Warnier wrote: > I found the following trick somewhere, maybe it works for you : > > When starting your JVM, use a line like > > java -Dpid=$$ program.java > and in the java program using the statement System.getProperty("pid"); > > If it works, it's cute, and certainly a lot less overhead. Doesn't that set the "pid" system property to the pid of the shell that launched the JVM? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzlQjkACgkQ9CaO5/Lv0PC63ACfROqppZe+t4kKOuEq/r4PeQDL md8AnA2fvxwI89iHlm4wjdEx/kbvPpHZ =Ghld -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org