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 » IBM MQ Java / JMS » MQRC_MULTIPLE_REASONS and MQRR in Java

Post new topic  Reply to topic
 MQRC_MULTIPLE_REASONS and MQRR in Java « View previous topic :: View next topic » 
Author Message
WingCommanderBadger
PostPosted: Tue Dec 13, 2005 3:16 am    Post subject: MQRC_MULTIPLE_REASONS and MQRR in Java Reply with quote

Apprentice

Joined: 06 Sep 2005
Posts: 32
Location: London, UK

I've written a Java app that succesfully writes messages to an MQ Distribution List (using MQv6), however I occasionally experience a MQRC_MULTIPLE_REASONS exception and I would like to be able to discover what the Reason and Completion Codes are for every object in my Distribution List when I get this exception.

I note that in the the MQv6 Application Programming Reference, the MQRR Response Record structure is mentioned (Chapter 21) which would appear to be the answer to my problem. I can't seem to figure out how I get access to this structure using Java though. Anbody had this problem before? And if so, how did you solve it?

Thanks in advance!
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue Dec 13, 2005 3:20 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

I haven't tried it, but the manual leads me to believe you should be able to iterate over the DistributionListItems and examine the reasonCode field of each one.
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
WingCommanderBadger
PostPosted: Fri Dec 16, 2005 7:58 am    Post subject: MQRC_MULTIPLE_REASONS and MQRR in Java Reply with quote

Apprentice

Joined: 06 Sep 2005
Posts: 32
Location: London, UK

Yep. It works a treat. Thanks for the advice.

I got thrown off the scent by the
Code:
MQPutMessageOptions.updateDistributionListItems()
method.

You don't appear to need it at all even though the manual confusingly states
Quote:
Copies updates in the response records into the distribution list items.


Anyone any idea what this method is actually for?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Dec 16, 2005 11:34 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

it may be for internal use by the queue manager when you do the put ?
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQRC_MULTIPLE_REASONS and MQRR in Java
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.