Hi,
I am trying to connect to a broker using failover and queue prefetch policy
set to 1, using it I don't receive any error and simply cannot connect
resulting in the application to hang.

I've tried both following formats:

failover:(tcp://localhost:61616?wireFormat.maxInactivityDuration=0&jms.prefetchPolicy.queuePrefetch=1)?initialReconnectDelay=10&maxReconnectDelay=15000

failover://tcp://localhost:61616?wireFormat.maxInactivityDuration=0&jms.prefetchPolicy.queuePrefetch=1&initialReconnectDelay=10&maxReconnectDelay=15000

You can test it using the and script in example folder:

ant
-Durl="failover://tcp://localhost:61616?wireFormat.maxInactivityDuration=0&jms.prefetchPolicy.queuePrefetch=1&initialReconnectDelay=10&maxReconnectDelay=15000"
producer -Dsubject="test"


If I remove the prefetch policy parameter the connection is established.

--
View this message in context: 
http://activemq.2283324.n4.nabble.com/ActiveMQ-connection-with-failover-and-prefetch-tp3335495p3335495.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to