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 » Strange behaviour of MQGET

Post new topic  Reply to topic
 Strange behaviour of MQGET « View previous topic :: View next topic » 
Author Message
pgorak
PostPosted: Thu Oct 16, 2003 2:35 am    Post subject: Strange behaviour of MQGET Reply with quote

Disciple

Joined: 15 Jul 2002
Posts: 158
Location: Cracow, Poland

Hi mainframers!

I've just noticed a very strange behaviour of MQGET in my application:

When messages are put on Q1 local queue, a CICS transaction is triggered to process the messages (trgtype=first). The transaction issues MQGETs with WaitInterval set to 5 [s], until it processes all messages currently available.

For test purposes I changed WaitInterval to 0 and the transaction does not get any messages off the queue! (it is so coded that it ends right after receiving RC 2033)

Now, in MQSeries trace I saw a couple of times that there is two times more MQGETs than expected. As far as I know, it happens when one uses signaling to wait for messages. But I don't use signaling.

Any ideas???

Piotr
Back to top
View user's profile Send private message
bob_buxton
PostPosted: Fri Oct 17, 2003 1:56 am    Post subject: Reply with quote

Master

Joined: 23 Aug 2001
Posts: 266
Location: England

The trigger message is generated when the message is put but the message is not be available for getting until it is comitted so you do need a wait in your program.

Get with Wait works like a get signal under CICS. If a message is not immediately available the adapter puts your CICS task into a CICS wait until it is signaled that a message is available when it internally reissues the get.
_________________
Bob Buxton
Ex-Websphere MQ Development
Back to top
View user's profile Send private message
pgorak
PostPosted: Fri Oct 17, 2003 2:20 am    Post subject: Reply with quote

Disciple

Joined: 15 Jul 2002
Posts: 158
Location: Cracow, Poland

That clarifies the case. Many thanks!

Piotr
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 » Strange behaviour of MQGET
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.