Posted: Mon Nov 13, 2006 10:55 pm Post subject: adding header to msg got it fron java input plug in
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
Posted: Tue Nov 14, 2006 1:22 am Post subject: Re: adding header to msg got it fron java input plug in
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.
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