This at the end of code, I am getting the problem just when I connect (IMqttToken token = sampleClient.connect(connOpts);). When I debug, I stop just after the connection line, and first the connectComplete(boolean reconnect, String serverURI) method of the callback is invoked and just after a second the connectionLost(Throwable cause) is invoked.
-- View this message in context: http://activemq.2283324.n4.nabble.com/Connection-to-activemq-broker-is-lost-within-one-second-tp4726204p4726256.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.