wood burning stoves 2.0*
The moose likes BEA/Weblogic and the fly likes How to retrieve managed server name using Java? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "How to retrieve managed server name using Java?" Watch "How to retrieve managed server name using Java?" New topic
Author

How to retrieve managed server name using Java?

Ong Vua
Ranch Hand

Joined: Jan 24, 2008
Posts: 59
I deployed my web app to a managed server and I want to retrieve the managed server's name from within the web app servlet.

Do you know how to do that?

Ong Vua
Ranch Hand

Joined: Jan 24, 2008
Posts: 59
I got it working already. Thanks
Sudhakar Betha
Greenhorn

Joined: Aug 04, 2011
Posts: 3

Can you please share how to ?

TIA,
Sudhakar


Sudhakar

Bangalore | India
German Gonzalez-Morris
Ranch Hand

Joined: Nov 16, 2009
Posts: 153

using Mbeans is an option: http://www.coderanch.com/t/520873/BEA-Weblogic/Getting-Server-Name-if-Current
(maybe the only one..)

G.


http://devwebcl.blogspot.com/
German Gonzalez-Morris
Ranch Hand

Joined: Nov 16, 2009
Posts: 153

a simpler solution would be to retrieve system property: -Dweblogic.Name
 
Consider Paul's rocket mass heater.
 
subject: How to retrieve managed server name using Java?
 
Similar Threads
JSF property file's value is not executing
getting the files from other server
Where to put properties files specific to each managed server?
Erro HTTP Status 500- What is this?
How to dynamically find out name of the managed instance using Java?