MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MQ - Roll back

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
ravikumar_sri2001
Beginner


Joined: 06 Dec 2002
Posts: 117
Topics: 44
Location: Chennai,India

PostPosted: Tue Oct 23, 2007 11:03 am    Post subject: MQ - Roll back Reply with quote

Hi experts,

I have a MQ defined with trigger type "FIRST". A message is put in that MQ by a job and job ends. The queue trigegrs an application program, which is designed to process only one message. If the application program abends with ASRA, the retrieved message from the queue will be roll back. But, will the application program triggered again, since the queue depth is ONE ?.

Thanks,
Ravikumar.
Back to top
View user's profile Send private message
bob_buxton
Beginner


Joined: 20 Dec 2002
Posts: 44
Topics: 0
Location: Hampshire, England

PostPosted: Wed Oct 24, 2007 4:02 am    Post subject: Reply with quote

The application will be triggered again if the abending application is the only application that has the queue open for input.

See the MQ Application Programming Guide chapter on triggering for a full explanation of the trigger rules.

In your application you should check the backout count field in the message and discard messages when the count is greater than the backout threshold for the queue. This is to prevent an infinite trigger loop developing when there is something wrong with the message content that is causing the message to be repeatedly backed out.
_________________
Bob Buxton
Ex Websphere MQ for zOS development
Back to top
View user's profile Send private message
ravikumar_sri2001
Beginner


Joined: 06 Dec 2002
Posts: 117
Topics: 44
Location: Chennai,India

PostPosted: Thu Oct 25, 2007 8:07 am    Post subject: Reply with quote

Thank you very much Bob for your explanation. I will also go thru "MQ Application Programming Guide ".

Thanks,
Ravikumar.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group