-----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 the Servlet code to detect if the Tomcat this Servlet runs > in, runs as Windows Service or Win Console App. Are you able to modify the deployment environment? If so, consider setting a system property (using -DserviceType=CONSOLE or - -DserviceType=SERVICE) and then using that from your apps. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHM3LZ9CaO5/Lv0PARAhN9AJ9ra+11SaFhxS10UEVGTzSZVB2VSgCdGVgo QAJgeCLqRKQ48ccKMqId/fc= =9lDH -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: [email protected] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
