Author |
Message
|
dosttumhara1810 |
Posted: Thu Aug 25, 2011 1:11 am Post subject: Retain Publication Issue |
|
|
Voyager
Joined: 01 Dec 2010 Posts: 76
|
Hi All,
I need some help on how to disable Retail Publication while publishing messages from WMB. Actually in my case the requirement is like i have 3000 subscribers(all are QoS value 2) to one topic and Wmb is publishing messages on that topic at regular interval(15 min) and suppose at some point of time one of the subscriber is not available , then after some time when that subscriber is up , then that subcriber will receive all the messages which that subscriber has missed while it was down. In my case requirement is like that subscriber should not receive the messages which are missed. It should only get the latest published message. I also don't want to negotiate in terms of QoS(2). Is there any property in WMB publish node or any thing that can be done to solve this problem.
I am using MB v 6.1.0.4
Thanks |
|
Back to top |
|
 |
Vitor |
Posted: Thu Aug 25, 2011 4:13 am Post subject: Re: Retain Publication Issue |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
dosttumhara1810 wrote: |
Is there any property in WMB publish node or any thing that can be done to solve this problem. |
Yes. You can arrange for the downed subscribers to cease to be subscribers while they're down. You can also recofigure the publication so as the subscriber requests the latest on request.
dosttumhara1810 wrote: |
I am using MB v 6.1.0.4 |
Think about applying some maintenance. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
dosttumhara1810 |
Posted: Thu Aug 25, 2011 6:08 am Post subject: |
|
|
Voyager
Joined: 01 Dec 2010 Posts: 76
|
My subscribers are durable and i guess i cannot cease them to be subscribers when the subscriber is down. This problem is solved if i make the subscriber non durable and Qos as 2 but then what is happening then is when the subscriber is up it receives published msgs sometimes it doesnot receive pub msgs when it becomes up after getting down and this probably happens if the connection goes up next day on which the connection goes down. i mean to say with nondurable subscription the subscription is unpredictable. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Aug 25, 2011 6:23 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
dosttumhara1810 wrote: |
My subscribers are durable and i guess i cannot cease them to be subscribers when the subscriber is down |
You'd need additional error handling / trapping / monitoring to achieve this.
dosttumhara1810 wrote: |
i mean to say with nondurable subscription the subscription is unpredictable. |
No, it's very predictable and is intended to behave exactly as you describe. Non-durable subscribers do not get "pub msgs when it becomes up after being down" because when it was down, it wasn't a subscriber.
You need a 2nd mechanism by which a "returning" subscriber can say:
"wow, never drinking that again, I'm back now, what did I miss?"
Luckly pub/sub provides that as well.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
dosttumhara1810 |
Posted: Thu Aug 25, 2011 8:08 am Post subject: |
|
|
Voyager
Joined: 01 Dec 2010 Posts: 76
|
No You didnt't get that..I mean to say when a non durable subscriber goes up it should get the next published msg on that topic to which it is subscriber automatically, but this this feature is sometimes working and sometimes not (probable if the subscriber goes down previous day and comes up next day) |
|
Back to top |
|
 |
Vitor |
Posted: Thu Aug 25, 2011 8:09 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
dosttumhara1810 wrote: |
this feature is sometimes working and sometimes not (probable if the subscriber goes down previous day and comes up next day) |
Raise a PMR. If there's a subscriber not getting a publication it's subscribed to then that's a bug with the software.
Though I'd go to the latest version of WMB & try it on that first.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|