Restarting a managed server in weblogic using the weblogic API

My company wants to automate the server management process, one of the requirements is to automate the restart of managed servers. Is there any way to do this using java code. maybe with weblogic API? In short, I need to restart the managed server whenever I receive a request to restart the managed server by email.

Ravi

+3
source share
1 answer

Yes, it is possible to use JMX and, in particular, ServerRuntimeMBeanin Weblogic it has methods for stopping and restarting.

Here is a complete example

+3
source

All Articles