activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Snyder <bruce.sny...@gmail.com>
Subject Re: Managing a Broker via JMX
Date Wed, 08 Apr 2009 22:06:48 GMT
On Wed, Apr 8, 2009 at 12:02 PM, ronchalant <ronchalant@gmail.com> wrote:

> In my application we want to leverage some kind of distributed queue
> probably using store-forward, and new brokers may come online from
> time-to-time.  I wanted to then update the network connector(s) dynamically
> to include these new brokers in the store-forward scheme, and I wanted to do
> this all programmatically.
>
> I could always roll my own JMX component that wraps the broker, providing
> whatever management I need, but I'd rather not re-invent that wheel.

You can achieve this via a static XML configuration (the most common)
or you could do it programatically either by embedding ActiveMQ or via
JMX. There's a very basic example of using JMX to interact with the
broker that's attached to the following message:

http://markmail.org/message/gjl3euwi5bgniffq

That will help to get you started. The one thing it doesn't
demonstrate is creation of a new network connector. But via Jconsole
you can see the addNetworkConnector() method on the Broker object.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

ActiveMQ in Action: http://bit.ly/2je6cQ
Blog: http://bruceblog.org/
Twitter: http://twitter.com/brucesnyder

Mime
View raw message