ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Problems with MQ Pub/sub V7 on Win/XP

Post new topic  Reply to topic
 Problems with MQ Pub/sub V7 on Win/XP « View previous topic :: View next topic » 
Author Message
samiyengar
PostPosted: Mon Jul 04, 2011 3:43 pm    Post subject: Problems with MQ Pub/sub V7 on Win/XP Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Mon Jul 04, 2011 4:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
skoobee
PostPosted: Mon Jul 04, 2011 10:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
gbaddeley
PostPosted: Mon Jul 04, 2011 10:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
skoobee
PostPosted: Tue Jul 05, 2011 1:29 am    Post subject: Reply with quote

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
View user's profile Send private message
samiyengar
PostPosted: Tue Jul 05, 2011 3:39 am    Post subject: Pub/sub Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Problems with MQ Pub/sub V7 on Win/XP
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.