title: Is there any way we could figure out in code the environment where EAR is deployed?
body: <p>I am facing an issue in my restlet project where I have to code some operations only if the EAR is deployed in Websphere in a restlet server project. Is there any way we can get information through code to find out where is EAR/WAR deployed?  (Is the EAR is deployed in Websphere or Tomcat or other servers).</p>