-
1. Re: Multiple Subscribers to a durable topic
ataylor Jul 13, 2012 10:42 AM (in response to pacodelucia)you can only have 1 unique durable subscription per topic, in this scenario you have 2, either change one or use non durable subscriptions
-
2. Re: Multiple Subscribers to a durable topic
pacodelucia Jul 13, 2012 11:07 AM (in response to ataylor)Thanks. Thats what I suspected. But using a non durable topic means that i will loose messages under some circumstances. I think i will have to implement my own "topic" using queues... Or are there alternatvies? Do exist some cluster scenarios that address my problem?
-
3. Re: Multiple Subscribers to a durable topic
ataylor Jul 13, 2012 11:15 AM (in response to pacodelucia)just use different durable subscription names for each node
-
4. Re: Multiple Subscribers to a durable topic
pacodelucia Jul 16, 2012 2:50 AM (in response to ataylor)That does not solve the problem because the message must only be processed once. I have a "XProcessorMdb" deployed on two JBoss instances. If a message arrives the message should only be processed once by an XProcessorMdb. There are other subscribers that do different things but it should only be processed once by the XProcessorMdb. Or am I missunderstanding the meaning of subscriberName? As I understand it from other posts to this forum the clientId and the subscriberName together must form a unique name. Each message in a topic is delivered to such a name.
-
5. Re: Multiple Subscribers to a durable topic
ataylor Jul 16, 2012 5:16 AM (in response to pacodelucia)ok, so what you want is basically a single distributed subscriber. You wont be able to do that with a topic, what you should do is use a queue instead. If you have other subscribers that you need to receive these messages then you can do this with a non exclusive divert and forward a copy of the message to another destination.
-
6. Re: Multiple Subscribers to a durable topic
pacodelucia Jul 16, 2012 6:50 AM (in response to ataylor)Great, that's exactly what I need. Thanks a lot for your help!
-
7. Re: Multiple Subscribers to a durable topic
hitjain_83 Jan 17, 2013 9:30 PM (in response to pacodelucia)Hi Andy/Pacodelucia,
Can either of you provide me the solution towards this - we are facing the same issue.
Have HornetQ topic - and need a client (using MDB) which uses clustered environment and needs to get the message only once on either of the 2 clustered JBoss EAP servers.
Please see if you can provide details on how to get around resolving this scenario.
-
8. Re: Multiple Subscribers to a durable topic
ataylor Jan 18, 2013 5:05 AM (in response to hitjain_83)Hitz,
as explaied in the post, you will need to use a queue instead of a topic