aspose file tools*
The moose likes BEA/Weblogic and the fly likes How to get Weblogic server instance info in a java class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "How to get Weblogic server instance info in a java class" Watch "How to get Weblogic server instance info in a java class" New topic
Author

How to get Weblogic server instance info in a java class

Manuel Eslava
Greenhorn

Joined: May 10, 2006
Posts: 1
Hi All ,

how to get the weblogic server name in a java class that is running within that server instance.

thanks
Purushoth Thambu
Ranch Hand

Joined: May 24, 2003
Posts: 425
You need to access server runtime beans to get the name. Inorder to do that you must have either of the following
- InitialContext instance reference inside the class
- If you can't pass initialContext then you have to create one, to do that you must have url, username, password values.

Below you can find the code to be executed from external client.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get Weblogic server instance info in a java class
 
Similar Threads
accessing startup class in ejb
multiple instances of same servlet class in WebLogic ?
regarding Thread Dump
how to know whether server instance is running or not?
weblogic server state using embedded form of WLST