Author |
Message
|
samiyengar |
Posted: Mon Jul 04, 2011 3:43 pm Post subject: Problems with MQ Pub/sub V7 on Win/XP |
|
|
Newbie
Joined: 27 Feb 2008 Posts: 7
|
OK - I have compiled the COBOL pub/sub samples under Win/XP. I execute the pub sample with a topic string of SPORTS and enter a few msgs which seems to work fine. Then I run the sub sample and give it the same topic string of SPORTS and nothing happens - issues the GET WAIT and 30 secs later the program ends without any of the published msgs.
No errors on either the compiles or executions. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Jul 04, 2011 4:17 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
First, don't double post!
Second, and given I'm not familiar with the samples in question, how have you determined that the messages are being published, i.e. that the subscription is in force and in scope to the publisher? You say the publisher "seems to work fine" - do you apply the same high standard to all COBOL code where you promote it to production because "it seems to work fine"?
What have to done (apart from double posting in this forum) to determine the problem area? What messages do you see in what queues? What level of v7 are you using? What COBOL compiler are you using? What do you discover from the DISPLAY commands you've added to the COBOL for diagnostic purposes? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
skoobee |
Posted: Mon Jul 04, 2011 10:16 pm Post subject: |
|
|
Acolyte
Joined: 26 Nov 2010 Posts: 52
|
Try the other way round. First subscribe to the topic, and then publish.
Publications are only delivered to current subscribers, unless the publication is a retained publication (or the subscription asks for retained publications), in which case the last publication is delivered to a new subscriber. |
|
Back to top |
|
 |
gbaddeley |
Posted: Mon Jul 04, 2011 10:44 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
skoobee wrote: |
Try the other way round. First subscribe to the topic, and then publish.
Publications are only delivered to current subscribers, unless the publication is a retained publication (or the subscription asks for retained publications), in which case the last publication is delivered to a new subscriber. |
... or the subscription is durable, where all publications are queued for delivery when the subscriber process is restarted. _________________ Glenn |
|
Back to top |
|
 |
skoobee |
Posted: Tue Jul 05, 2011 1:29 am Post subject: |
|
|
Acolyte
Joined: 26 Nov 2010 Posts: 52
|
[quote]or the subscription is durable, where all publications are queued for delivery when the subscriber process is restarted.
[/quote]
Still have to subscribe first. |
|
Back to top |
|
 |
samiyengar |
Posted: Tue Jul 05, 2011 3:39 am Post subject: Pub/sub |
|
|
Newbie
Joined: 27 Feb 2008 Posts: 7
|
Tks for the help - I figured out that the sub had to run first (since I guess the default pub is not retained). |
|
Back to top |
|
 |
|