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
Yes, it is possible to use JMX and, in particular, ServerRuntimeMBeanin Weblogic it has methods for stopping and restarting.
ServerRuntimeMBean
Here is a complete example