how to distinguish between web application or standalone app.?
<p>Is there a way to distinguish inside particular method if it is running in a web application (eg whole applications is deployed on tomcat/web sphere etc) or as a standalone application?</p>
