[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ActiveMQ-cpp-library 3.9.4 connection timeout

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: