On 3/27/07, Allesmallachen <[EMAIL PROTECTED]> wrote:
Hi, I am trying to implement a custom BrokerFilter. If the addConsumer method is called a special message should be send to all peer brokers. Is there a way to directly send a Command or Message subclass to a peer broker from within a BrokerFilter??? The AdvisoryBroker seems to publish Messages to the Advisory topics. Advisory topics have connections to peer brokers and this is how messages travel from AdvisoryBroker to peer brokers. This feels a little bit awkward for pure broker-to-broker communication. Is there no direct way to exchange messages between brokers?
It depends on what you're doing. You could look at extending the NetworkConnectors which deal with broker-broker communication. BrokerFilter is really used as an interceptor to process in/out bound commands to a single broker -- James ------- http://radio.weblogs.com/0112098/