[prev in list] [next in list] [prev in thread] [next in thread] 

List:       activemq-dev
Subject:    Re: Can not get info activeMQ broker's status.
From:       Timothy Bish <tabish121 () gmail ! com>
Date:       2016-02-12 16:44:25
Message-ID: 56BE0BE9.6050705 () gmail ! com
[Download RAW message or body]

On 02/12/2016 04:07 AM, Konstantin wrote:
> My C++ application uses activemq-cpp library.
> When I create connection and call *connection->start()* app hangs until the
> corresponding activemq broker is not running.
> Is there any way to know either activemq broker is running or not before
> calling *connection->start()*?
> Thanks.
> 
> 
> 
> --
> View this message in context: \
> http://activemq.2283324.n4.nabble.com/Can-not-get-info-activeMQ-broker-s-status-tp4707450.html
>  Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
> 
Not really, if the broker is down then the client won't be able to
connect and will hang on start if you are using the failover transport. 
You can change options such that there are a limit on startup connection
attempts. 

-- 
Tim Bish
twitter: @tabish121
blog: http://timbish.blogspot.com/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic