• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get Weblogic server instance info in a java class

 
Manuel Eslava
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic