247 total views, 0 views today

WebLogic JMX API Example: Using WebLogic serverRuntime to print WebLogic server state, Name and shutdown WebLogic server

 

The Java code mentioned in this post connects to WebLogic server and prints the WebLogic server state, name, Oracle Home and all other server attributes. The WebLogic serverRuntime MBean code invokes the forceshutdown() to shut down the WebLogic server

 

Note: Add the C:\middleware1213\wlserver\server\lib\wljmxclient.jar if you connect to the WebLogic Server remotely

 

The WebLogic serverRuntime can be referred in the JConsole below:

 

Supported WebLogic ServerRuntimeMbean Attributes

 

122317_0135_WeblogicJMX1 Weblogic JMX API Example Using weblogic serverRuntime to monitor WebLogic Server State, Name, and shutdown WebLogic server

 

Supported WebLogic ServerRuntimeBean Operations/Methods

 

122317_0135_WeblogicJMX2 Weblogic JMX API Example Using weblogic serverRuntime to monitor WebLogic Server State, Name, and shutdown WebLogic server

 

Other WebLogic ServerRuntimeMBean properties can be referred in the below Java Class

 

https://docs.oracle.com/middleware/1221/wls/WLAPI/weblogic/management/runtime/ServerRuntimeMBean.html

 

The below Java code Prints server state, and other supported parameters using WebLogic ServerRuntimeMBean. Also, The Java JMX code force-shutdown all the WebLogic server.

 

 


 OutPut

 

Server name = AdminServer. Server state: RUNNING

WebLogic Home = C:\middleware1213\wlserver

DefaultURL = t3://192.168.253.1:7001

SSL Listen Address = null

Current Directory = c:\middleware1213\user_projects\domains\p6\.

Administration URL = t3://192.168.253.1:7001

govindan Weblogic JMX API Example Using weblogic serverRuntime to monitor WebLogic Server State, Name, and shutdown WebLogic server
Connect me

Govind

Thank you for visiting my personal blog. Myself Govindan, Software Developer by profession since 2006 and hence I started this blog early in 2016 and ever since I've been writing about technologies experienced and learnings of everyday life.

The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.

Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply 🙂
govindan Weblogic JMX API Example Using weblogic serverRuntime to monitor WebLogic Server State, Name, and shutdown WebLogic server
Connect me
By | 2017-12-22T21:04:14+00:00 December 22nd, 2017|Categories: WebLogic|Tags: , , |0 Comments
Like us on Facebook.
Connect!