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 » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » adding header to msg got it fron java input plug in

Post new topic  Reply to topic
 adding header to msg got it fron java input plug in « View previous topic :: View next topic » 
Author Message
team
PostPosted: Mon Nov 13, 2006 10:55 pm    Post subject: adding header to msg got it fron java input plug in Reply with quote

Centurion

Joined: 03 Nov 2006
Posts: 108

hi
good afternoon
i am trying to add the header in the compute , to input msg which i am getting it from the java plug in node
i have writtem code in compute node code as fallows


SET OutputRoot.MQMD.Version = MQMD_CURRENT_VERSION;
SET OutputRoot.MQMD.Format = MQFMT_NONE;

SET OutputRoot.MQRFH2.(MQRFH2.Field)Version = 2;
SET OutputRoot.MQRFH2.(MQRFH2.Field)Format = 'MQSTR';
SET OutputRoot.MQRFH2.(MQRFH2.Field)NameValueCCSID = 1208;
SET OutputLocalEnvironment.MQRFH2.mcd.Msd = 'BLOB';


SET OutputLocalEnvironment.Destination.MQ.DestinationData.queueName = 'OutputQ';
SET OutputRoot.BLOB.BLOB = InputRoot.BLOB.BLOB;

but MQRFH2 header values it is taking it as null,and i am not getting any msg in output

RFH ....
44 00 00 00 22 02 00 00 D..."...
B5 01 00 00 4D 51 53 54 µ...MQST
52 20 20 20 00 00 00 00 R ....
B8 04 00 00 1C 00 00 00 ¸.......
3C 6D 63 64 3E 3C 4D 73 <mcd><Ms
64 3E 6E 6F 6E 65 3C 2F d>none</
4D 73 64 3E 3C 2F 6D 63 Msd></mc
64 3E 20 20 3C 4E 61 6D d> <Nam
65 3E 41 4E 55 50 41 4D e>3C 2F 4E 61 6D 65 3E </Name>


this is my output

if i do get msg ..........i am not getting values ANUPAM
Back to top
View user's profile Send private message Yahoo Messenger
Vitor
PostPosted: Tue Nov 14, 2006 1:22 am    Post subject: Re: adding header to msg got it fron java input plug in Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Ok, couple of points

team wrote:

SET OutputRoot.MQMD.Format = MQFMT_NONE;


If you've got an RFH2 in the message, the MQMD must reflect that.

team wrote:

SET OutputRoot.MQRFH2.(MQRFH2.Field)Version = 2;
SET OutputRoot.MQRFH2.(MQRFH2.Field)Format = 'MQSTR';
SET OutputRoot.MQRFH2.(MQRFH2.Field)NameValueCCSID = 1208;
SET OutputLocalEnvironment.MQRFH2.mcd.Msd = 'BLOB';


What's with the format? If the message is a BLOB (as the following code would seem to indicate) why is the MQRFH2.Format a string with a CCSID? And why set an MQRFH2 in the Environment? Intended purpose eludes me...

Is the the message text or BLOB? Is it being passed forward as text or BLOB?
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » adding header to msg got it fron java input plug in
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.