Connecting to JMX server in spring throws exception!
So when I try to connect to jmx from jconsole I get this exception: Caused by: java.rmi.ConnectException: Connection refused to host: 78.84.17.116; nested exception is: java.net.ConnectException: Connection timed out: connect at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198) ... I was trying to connect to such url in jconsole: service:jmx:rmi:///jndi/rmi://78.84.17.116:43030/test My jmx spring configuration: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema