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 » WebSphere Message Broker (ACE) Support » Emulating NAN reports

Post new topic  Reply to topic
 Emulating NAN reports « View previous topic :: View next topic » 
Author Message
billybong
PostPosted: Fri Jun 27, 2008 6:35 am    Post subject: Emulating NAN reports Reply with quote

Disciple

Joined: 22 Jul 2005
Posts: 150
Location: Stockholm, Sweden

Hi guys,

I'm trying to create a flow that emulates a NAN report. My problem is even though I'm setting the MQMD fields in the flow and they show in the debugger, the MQMD Report field is not set on the output MQ message.

Code below:

SET OutputRoot.MQMD.Report = MQRO_NAN;
SET OutputRoot.MQMD.MsgType = MQMT_REPLY;

I'm using a reply node to reply based on the replyTo header setting. I've also tried to use a standard MQOutput node with dynamic routing to reply q, but none of the nodes generates the message I want.

Is there anything I've missed or misunderstood?

The reason for setting the NAN is because existing systems aldready use the NAN field to report back to the user that the message was undeliverable.
_________________
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Integration Developer V6.0
IBM Certified System Administrator - WebSphere MQ V6.0
IBM Certified Solution Developer - WebSphere DataPower
Back to top
View user's profile Send private message Visit poster's website
billybong
PostPosted: Fri Jun 27, 2008 7:24 am    Post subject: Reply with quote

Disciple

Joined: 22 Jul 2005
Posts: 150
Location: Stockholm, Sweden

Seems like the MQ output nodes propagates these settings if you use the LocalEnvironment or a static routing to the queue. Is this a bug?
I also found that I misinterpreted the way reports are created, code should be:

Code:

SET OutputRoot.MQMD.Feedback = MQFB_APPL_FIRST + 1;
SET OutputRoot.MQMD.MsgType = MQMT_REPORT;
SET OutputLocalEnvironment.Destination.MQDestinationList.DestinationData[1].queueName = InputRoot.MQMD.ReplyToQ;
SET OutputLocalEnvironment.Destination.MQDestinationList.DestinationData[1].queueManagerName  = InputRoot.MQMD.ReplyToQMgr;

_________________
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Integration Developer V6.0
IBM Certified System Administrator - WebSphere MQ V6.0
IBM Certified Solution Developer - WebSphere DataPower
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Emulating NAN reports
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.