You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by pgiesin <pg...@hubcitymedia.com> on 2006/11/04 19:18:16 UTC
Network of Embedded Brokers
I would like to setup a network of embedded brokers. Each broker would be
running in an instance of tomcat on a separate server. Each tomcat instance
would also have a single producer and a single consumer. The producer should
publish to the internal broker. The consumers should receive messages from
each of the other brokers, but not its own.
So far I have managed to get a single instance working except for that fact
that it consumes its own messages, which I would like to avoid. I don't know
if a configuration like this is even possible. So if anyone has something
configured like this I would really like to share notes and configuration
files.
Thanks,
Pete
--
View this message in context: http://www.nabble.com/Network-of-Embedded-Brokers-tf2574581.html#a7177289
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Network of Embedded Brokers
Posted by pgiesin <pg...@hubcitymedia.com>.
Yes, I am talking about topics. This looks exactly like what I was looking
for. Thanks very much. Now I just need to get the brokers communicating and
I will be golden.
Pete
Xalibur wrote:
>
> pgiesin schrieb:
>> I would like to setup a network of embedded brokers. Each broker would be
>> running in an instance of tomcat on a separate server. Each tomcat
>> instance
>> would also have a single producer and a single consumer. The producer
>> should
>> publish to the internal broker. The consumers should receive messages
>> from
>> each of the other brokers, but not its own.
>
> Hello Pete,
>
> are you talking about TopicPublishers and -Consumers or about Queues?
> At least in the case of Topics there is a solution to your problem:
> Create your TopicSubscriber with the parameter noLocal=true.
>
> ActiveMQTopicSession.createSubscriber(Topic topic,
> String messageSelector,
> boolean noLocal)
> http://incubator.apache.org/activemq/maven/activemq-core/apidocs/org/apache/activemq/ActiveMQTopicSession.html#createSubscriber(javax.jms.Topic,%20java.lang.String,%20boolean)
>
>
> Regards
> Linda
>
>
>
--
View this message in context: http://www.nabble.com/Network-of-Embedded-Brokers-tf2574581.html#a7188138
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Network of Embedded Brokers
Posted by Xalibur <xa...@nexgo.de>.
pgiesin schrieb:
> I would like to setup a network of embedded brokers. Each broker would be
> running in an instance of tomcat on a separate server. Each tomcat instance
> would also have a single producer and a single consumer. The producer should
> publish to the internal broker. The consumers should receive messages from
> each of the other brokers, but not its own.
Hello Pete,
are you talking about TopicPublishers and -Consumers or about Queues?
At least in the case of Topics there is a solution to your problem:
Create your TopicSubscriber with the parameter noLocal=true.
ActiveMQTopicSession.createSubscriber(Topic topic,
String messageSelector,
boolean noLocal)
http://incubator.apache.org/activemq/maven/activemq-core/apidocs/org/apache/activemq/ActiveMQTopicSession.html#createSubscriber(javax.jms.Topic,%20java.lang.String,%20boolean)
Regards
Linda