Determining when activemq broker is active

View: New views
2 Messages — Rating Filter:   Alert me  

Determining when activemq broker is active

by /U :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Is there a way (programmatically or otherwise) of determining when
the activemq broker as been successfully initialized and is available for
connections from clients?

I am writing an OCF script to manage activemq and one of the needs of OCF
is to determine from the managed resource (activemq broker in this case)
if the resource is active or not.

Programmatic: is there a way to send a (JMS) query and look for a response to
ascertain the avalability of the broker?

Oris there a file sytem artifact that the broker creates by which I could confirm that its
running?

Thanks,

/U

Re: Determining when activemq broker is active

by Dejan Bosanac :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I guess the most reliable solution would be to try send/receive a message to
the broker.


Cheers
--
Dejan Bosanac

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Sat, Jul 4, 2009 at 8:55 PM, /U <uma_rk@...> wrote:

>
>
> Is there a way (programmatically or otherwise) of determining when
> the activemq broker as been successfully initialized and is available for
> connections from clients?
>
> I am writing an OCF script to manage activemq and one of the needs of OCF
> is to determine from the managed resource (activemq broker in this case)
> if the resource is active or not.
>
> Programmatic: is there a way to send a (JMS) query and look for a response
> to
> ascertain the avalability of the broker?
>
> Oris there a file sytem artifact that the broker creates by which I could
> confirm that its
> running?
>
> Thanks,
>
> /U
> --
> View this message in context:
> http://www.nabble.com/Determining-when-activemq-broker-is-active-tp24337100p24337100.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>
Dejan Bosanac

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net