On 7/6/06, James Strachan <[EMAIL PROTECTED]> wrote:
On 7/6/06, bmadigan <[EMAIL PROTECTED]> 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/

Reply via email to