Hi,
I am managing and monitoring web based chat application in local intranet by using JMX. Part of my code is as follows :
...
mbeanServer.registerMBean(regMBean, regName);
serviceURL = new JMXServiceURL("rmi", "localhost", 0,"/jndi/jmx");
connectorServer = JMXConnectorServerFactory.newJMXConnectorServer(
serviceURL, null, mbeanServer);
ObjectName serverName = new ObjectName(":service="+ JMXConnectorServer.class.getName() + ",protocol="
+ serviceURL.getProtocol());
mbeanServer.registerMBean(connectorServer, serverName);
=>errconnectorServer.start();
System.out.println("server started");
setStarted(true); ....
I am getting following stacktrace.
[STDOUT] java.io.IOException: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
14:43:13,095 INFO [STDOUT] at mx4j.remote.resolver.rmi.Resolver.bindServer(Resolver.java:199)
14:43:13,095 INFO [STDOUT] at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:152)
14:43:13,095 INFO [STDOUT] at com.csam.webchat.misc.WebChatMBeanAgent.startServer(WebChatMBeanAgent.java:50)
14:43:13,095 INFO [STDOUT] at org.apache.jsp.login_jsp._jspService(login_jsp.java:78)
....
Can anybody help me out??
Thank You..
Jahnvi