> From: Dougherty, Gregory T., M.S. [mailto:[email protected]] 
> Subject: Re: Is there a way for code running on Tomcat 7+ to determine the 
> URL of the Web App it's running under?

> You can honestly tell who¹s calling you, since you can throw an exception,
> catch it, then look at the stack trace.

Or just call Thread.getStackTrace()...

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to