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 » Updates to MQRFH2 Header from ComputeNode are ignored

Post new topic  Reply to topic
 Updates to MQRFH2 Header from ComputeNode are ignored « View previous topic :: View next topic » 
Author Message
IQ Solutions
PostPosted: Fri Mar 20, 2009 6:51 am    Post subject: Updates to MQRFH2 Header from ComputeNode are ignored Reply with quote

Newbie

Joined: 18 Mar 2009
Posts: 6

I have the following ESQL in a Compute Node to add the MQRFH2 Header, and set the properties so that a JMS client will interpret the message as JMSText.

Code:

CREATE PROCEDURE AddMQRFH2Header()
   BEGIN
      
      IF NOT EXISTS(OutputRoot.MQRFH2[]) THEN
         CREATE NEXTSIBLING OF OutputRoot.MQMD DOMAIN 'MQRFH2';
         SET OutputRoot.MQMD.Format = MQFMT_RF_HEADER_2;
      END IF;
      
      SET OutputRoot.MQRFH2.(MQRFH2.Field)StrucId = MQRFH_STRUC_ID;
      SET OutputRoot.MQRFH2.(MQRFH2.Field)Version = MQRFH_VERSION_2;
      SET OutputRoot.MQRFH2.(MQRFH2.Field)Struclength = MQRFH_STRUC_LENGTH_FIXED_2;
      SET OutputRoot.MQRFH2.(MQRFH2.Field)Encoding = MQENC_NATIVE;
      SET OutputRoot.MQRFH2.(MQRFH2.Field)CodedCharSetId = MQCCSI_INHERIT;
      SET OutputRoot.MQRFH2.(MQRFH2.Field)Format = MQFMT_STRING ;
      SET OutputRoot.MQRFH2.(MQRFH2.Field)Flags = MQRFH_NONE;
      SET OutputRoot.MQRFH2.(MQRFH2.Field)NameValueCCSID = 1208;
      SET OutputRoot.MQRFH2.mcd.Msd = 'jms_text';
      SET OutputRoot.MQRFH2.mcd.Set = '';
      SET OutputRoot.MQRFH2.mcd.Type = '';
      SET OutputRoot.MQRFH2.mcd.Fmt = '';
      
      
   END;


When I inspect the Message tree after exitting the Compute node, the MQRFH2 header has been added, but some of my SETs have been ignored.

Code:
MQRFH2
   StrucId:CHARACTER:RFH
   Version:INTEGER:2
   Struclength:INTEGER:36
   Encoding:INTEGER:546
   CodedCharSetId:INTEGER:-2
   Format:CHARACTER:MQSTR   
   Flags:INTEGER:0
   NameValueCCSID:INTEGER:1208
   mcd
      Msd
         CHARACTER:xmlnsc
      Set
         CHARACTER:PIMR Service Message Set
      Type
         CHARACTER:{http://www.iqsolutions.com/PIMR-Service}:PIMRServiceCall
      Fmt
         CHARACTER:XML1


What gives?
Back to top
View user's profile Send private message
HOMETOWN47
PostPosted: Fri Mar 20, 2009 7:14 am    Post subject: Reply with quote

Apprentice

Joined: 25 Mar 2003
Posts: 34

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/topic/com.ibm.etools.mft.doc/aq06940_.htm?


Has following section:-

If an MQRFH2 header is present in an output message tree, an <mcd> folder is always added and populated. This is so that the MQRFH2 header accurately reflects the message template of the message. The <mcd> folder must not be removed from the MQRFH2 folder. If it is deleted - for example, by a Compute node - it is automatically added and populated again on exit from the node.

I suspect that this is the cause...
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Fri Mar 20, 2009 7:37 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

From the link:
http://www.mqseries.net/phpBB2/viewtopic.php?p=186660&sid=5b30eac497f6aacb249a3f2f43513774

it suggests
Code:
 Set OutputRoot.Properties.MessageType


i've not tried this however.

You can achieve what you want by putting an RCD node after the compute, specifying jms_text in the message domain field and ticking the "Reset Message Domain" box.

Hope that helps
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 » WebSphere Message Broker (ACE) Support » Updates to MQRFH2 Header from ComputeNode are ignored
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.