activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ethan.Lin" <>
Subject ActiveMQ-cpp-library 3.9.4 connection timeout
Date Mon, 06 Aug 2018 07:47:14 GMT
Dear readers,

I get a question when I'm using ActiveMQ-cpp-library 3.9.4 to connect to MQ
server, as described below:

It seems that the timeout parameters specified in URI of connection do not
take effect if MQ server does not exist. For example, I use the following
URI to connect to MQ server, 
where does not exist in the network. And I suppose that when
cms::Connection.start() is called, the connection will fail within 10ms and
throw an exception to my application. However, it blocks my application
about 42 seconds and then throw the exception. Whatever maxReconnectDelay is
set to any value, this start() function takes almost 42 seconds and the

Did anyone meet this question before? How do I set URI parameters that can
lead the start() to return within 1 second instead of 42 seconds? 

Thank you very much.

Sent from:

View raw message