activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Failover topic subscribers
Date Thu, 06 Jul 2006 17:57:34 GMT
On 7/6/06, James Strachan <james.strachan@gmail.com> wrote:
> On 7/6/06, bmadigan <bmadigan@orbitz.com> wrote:
> >
> > I am definately taking a stab at this already, so I'll let you know what I
> > come up with.
>
> Great! :)
>
> BTW am just about to commit an implementation of getDestinations() on
> BrokerFilter for you to do the wildcard lookup of all destinations
> matching ${prefix}.*.${topic} which will be handy for finding the
> 'logical topic subscribers' in a simple map-ish lookup. It returns a
> Set so you just need to iterate through it and do a send of a message
> to the queue for each result.

Its in trunk now, so you should be able to do this from inside a BrokerFilter...

String prefix = "Virtual.";
String topic = "FOO.BAR";

Set physicalQueues = getDestinations(new ActiveMQQueue(prefix + ".*." + topic));
foreach (physicalQueues) {
  send message to it...

-- 

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message