File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Accessing configuration params 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 "Accessing configuration params" Watch "Accessing configuration params" New topic
Author

Accessing configuration params

Nitin Shivaram
Ranch Hand

Joined: Jan 17, 2001
Posts: 71
Hi,
Does anyone know how to access the configuration parameters of WebLogic 6.1 server like listening port, machine name etc through MBeans?
I am trying to get the handle to the Weblogic Context, which needs those parameters.
TIA


Nitin S<br />Sun Certified Java Programmer for the Java 2 platform.<br />Tekmetrics Certified Java Programmer For the Java 2 Platform.
Dave Landers
Ranch Hand

Joined: Jul 24, 2002
Posts: 401
If you are running code in the server (like EJB or Servlet or JSP), you do not need to know anything to get JNDI context - all you have to do is
new InitialContext();
From there, you can look up the MBeanHome in JNDI - see
http://e-docs.bea.com/wls/docs61/jmx/basics.html
If you are running code from a client (outside the server), then you will need to look up the MBeanHome from JNDI. Of course you need the provider url to create this InitialContext in the first place....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing configuration params
 
Similar Threads
hypersonic
what are the configuration files in weblogic?
How to manage configuration parameters
Oracle thin driver connectivity
How to set Memory Parameters in Weblogic11