Forums Register Login

How to get J2EE Application Name

+Pie Number of slices to send: Send
Hi Everyone,

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.

Osita Agbo.
+Pie Number of slices to send: Send
Hi Osita,

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.
We must storm this mad man's lab and destroy his villanous bomb! Are you with me tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 3115 times.
Similar Threads
Hot to deploy struts application in weblogic8.1 with SP4
Application start through JMX fails for JBoss5xx
Weblogic 8.0 sp1 : Initcontext.lookup is failing
WSADMIN Scipt error
I am getting this message : "Error 404--Not Found" while starting an app by Weblogic
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 11:46:50.