Re: Detecting whether Win Service or Console App

2007-11-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Normen, Normen Ruhrus wrote: > iam deploying a servlet app via Tomcat sometimes as a Windows Service and > sometimes as a standard Windows Console App. > > Since I need to implement different behavior in the servlet, I would need a > way from inside

Detecting whether Win Service or Console App

2007-11-08 Thread Normen Ruhrus
Hi there, iam deploying a servlet app via Tomcat sometimes as a Windows Service and sometimes as a standard Windows Console App. Since I need to implement different behavior in the servlet, I would need a way from inside the Servlet code to detect if the Tomcat this Servlet runs in, runs as Wi