activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexlzl <>
Subject Multicast Discovery hangs if there is no broker
Date Fri, 12 Oct 2007 18:40:11 GMT


I am using ActiveMQ 4.1.1 with Multicast Discovery for client to find the
broker, thus we can avoid hard coding any physical hosts in the config.
After discovery, the real communication still is through TCP.

However, we found that the MulticastDiscoveryAgent will simply hang there
forever if there is not a single broker in the network broadcasting on the
Multicast channel. 

We are using a PooledConnectionFactory, and the brokerUri is something like
this (the "maxReconnectAttempts" does not seem to work):


Looks like the agent is waiting on the Multicast socket incoming datagram
forever. It is really bad since we actually init the pool on Tomcat startup.
Once the thread is hanging, everything stops.

Thanks in advance for any suggestions to get around. 
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message