I need to write code (Servlet/EJB) in an application that can figure out the name of the application it is deployed within. The name of the application is decleared in the Application.xml file. I am working with more than one EAR file deployed on WebLogic Server 8.1 SP4
Thanks a lot for your response.
posted 11 years ago
You might consider storing the information inside your packages and retrieve them at runtime. More exactly you might store the next information inside of the manifest.mf file(s):
Next you can use the java.lang.Package class in order to get all these information at runtime. This class has specific methods like getName, getImplementationTitle, getSpecificationTitle, etc. Regards.