Anyone know how to fetch the current webMathematica kernel ID number (e.g. {0,1,2,3...} as reported by Resources/Tools/KernelMonitor.jsp) from within my webMathematica code. I can use $ProcessID to get a UNIX PID, but I'd prefer to have the Kernel ID associated with that PID.
Also, I'd like to know how to fetch the current tomcat servlet ID from within webMathematica. Any idea how to do this? This is the value logged as '%t' in the log4j logging package used by tomcat (e.g. 'http-bio-8080-exec-4') when running webMathematica transactions.
Thanks!