Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的公司想要自动化管理服务器的过程,要求之一是自动重新启动托管服务器。有什么办法可以使用java代码做到这一点。可能与 weblogic API 一起使用?简而言之,每当有通过电子邮件重新启动托管服务器的请求时,我都需要重新启动托管服务器。
拉维
是的,可以使用JMX,特别是ServerRuntimeMBeanWeblogic 内部有停止和重新启动的方法。
ServerRuntimeMBean
这里给出了一个完整的例子