public static void main(String[] args) throws Exception
{
// The MBeanServer
MBeanServer server = MBeanServerFactory.createMBeanServer();
// Pass null as the host name to tell JMXServiceURL to default to InetAddress.getLocalHost().getHostName()
JMXServiceURL url = new JMXServiceURL("hessian+ssl", null, 8443, "/hessianssl");
// Replace the value of the configuration with the file path of the configuration file
Map serverEnv = new HashMap();
serverEnv.put(HTTPConnectorServer.WEB_CONTAINER_CONFIGURATION, "<your-web-container-configuration>");
JMXConnectorServer connectorServer = JMXConnectorServerFactory.newJMXConnectorServer(url, serverEnv, server);
connectorServer.start();
System.out.println("Server up and running " + connectorServer + " on " + url);
}
Server.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:cacheonix-core
作者:
评论列表
文章目录