Posted: Fri Jun 27, 2008 6:35 am Post subject: Emulating NAN reports
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
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
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