activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joesan <codeintheo...@gmail.com>
Subject Re: ActiveMQ Clustering Issue
Date Thu, 23 Aug 2012 06:49:07 GMT
This is how my MessageListener looks like:

*public class Listener implements MessageListener {

	public void onMessage(Message message) {
		try {
			MapMessage map = (MapMessage)message;
			Long msgCount = map.getLong("counter");
			System.out.println("Message Count Received is " + msgCount);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}*

The maxReconnectAttempts=-1 did not work and my Consumer will shutdown if
the connection could not be established within 1 couple of seconds.



--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-Clustering-Issue-tp4655306p4655468.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message