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 » Adding a header to an MRM message

Post new topic  Reply to topic
 Adding a header to an MRM message « View previous topic :: View next topic » 
Author Message
Reddiough
PostPosted: Tue Jul 31, 2001 1:09 am    Post subject: Reply with quote

Novice

Joined: 27 Jun 2001
Posts: 23

I've got an MRM message going through a message flow. I'm doing some validation and at certain points in the flow I want to send the message to an error queue and I want to prefix the message with a error header, much like the DLH.

I can define another MRM message with the header fields plus all the fields from the original message but this could be a pain, especially if I have lots of messages to do.

Is there any way I can set up my header and then append the main message whatever it contains ?

_________________
Tony Reddiough
Certified MQSeries Consultant
Back to top
View user's profile Send private message Send e-mail
granthmuk
PostPosted: Tue Jul 31, 2001 5:23 am    Post subject: Reply with quote

Apprentice

Joined: 16 May 2001
Posts: 38
Location: Edinburgh, Scotland

What about using an RFH2 header. You could put your error values into the MQRFH2usr folder.
e.g.
SET OutputRoot.MQRFH2.usr.errorval1='SomeText';
Back to top
View user's profile Send private message
kolban
PostPosted: Tue Jul 31, 2001 1:08 pm    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

You could build your new header which is mapped to an MRM described structure and then piggy back the original data by setting it as a blob ... for example:

SET OutputRoot.MRM.MyField1 = '...';
SET OutputRoot.MRM.MyField2 = '...';
SET OutputRoot.BLOB.BLOB = BITSTREAM(InputRoot.MRM);
Back to top
View user's profile Send private message
Reddiough
PostPosted: Thu Aug 02, 2001 5:14 am    Post subject: Reply with quote

Novice

Joined: 27 Jun 2001
Posts: 23

That's exactly what I was after and works a treat.

Thanks for your help.

Tony.
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 » WebSphere Message Broker (ACE) Support » Adding a header to an MRM message
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.