Reputation: 1181
I am using ActiveMQ topics. My applications create some topics, and create a producer and a consumer on theses topics.
When a producer send something, it will receive back the message because there is also a consumer on this topic in the same topic.
There is a topic dedicated for each application (different code, for different computer running it) and there is a main central core process that will join each topic to process messages, and will then reply to the topic where the request message have been posted.
Some topics are "general purpose" topics, where some messages won't have a reply, but that many process will take into account.
Is there something in ActiveMQ that can prevents the producer to receive back what it sends ?
Edit : please note that I am quite a newbie with ActiveMQ, I am using it not so long ago, and with very basic settings : no persistence, as simple application bus
Upvotes: 0
Views: 191
Reputation: 31795
When you create your consumer you can specify a message selector to exclude messages with your producer's unique ID. Your producer can set its ID in a message property when creating its messages.
Upvotes: 1