Posted: Tue Jan 07, 2003 12:25 am Post subject: Removing MQRFH2 Header from Receiving Message
Partisan
Joined: 29 Sep 2002 Posts: 331 Location: USA
hi
I have a scenario like, I have MQJava program which is retrieving messages from a Queue to which JAVA Client is placing messages.
Here how I can remove MQRFH2 header from the message?
is it possible to control in mqsi controlcenter using computenode itself?
Note: My MQJava Progrm will do that removing header part.but Some scenario i need to control from MQSI node itself.
Any Suggestion
Incoming Message is like
52 46 48 20 02 00 00 00 RFH ....
88 00 00 00 22 02 00 00 ...."...
B5 01 00 00 20 20 20 20 µ...
20 20 20 20 00 00 00 00 ....
B8 04 00 00 40 00 00 00 ¸...@...
3C 70 73 63 3E 3C 43 6F <psc><Co
6D 6D 61 6E 64 3E 50 75 mmand>Pu
62 6C 69 73 68 3C 2F 43 blish</C
6F 6D 6D 61 6E 64 3E 3C ommand><
54 6F 70 69 63 3E 49 42 Topic>AS
2F 58 4D 4C 52 45 50 4C /MSGREPL
59 3C 2F 54 6F 70 69 63 Y</Topic
3E 3C 2F 70 73 63 3E 20 ></psc>
1C 00 00 00 3C 6D 63 64 ....<mcd
3E 3C 4D 73 64 3E 78 6D ><Msd>xm
6C 3C 2F 4D 73 64 3E 3C l</Msd><
2F 6D 63 64 3E 20 20 20 /mcd> the above part i need to remove using the MQSI Node.
3C 3F 78 6D 6C 20 76 65 <?xml ve
72 73 69 6F 6E 3D 22 31 rsion="1
2E 30 22 20 65 6E 63 6F .0" enco
64 69 6E 67 3D 22 49 53 ding="IS
4F 2D 38 38 35 39 2D 31 O-8859-1
22 20 3F 3E 3C 72 6F 6F " ?><roo
74 3E 3C 72 65 73 20 63 t><res c
6F 64 65 3D 22 31 30 30 ode="Tes
38 22 20 20 75 6E 30 30 t" ref0
31 3D 22 39 37 63 62 62 1="97cbb
62 62 34 30 61 39 30 38 brida908
63 36 61 32 64 66 38 33 c6asfs83
62 31 62 61 39 64 64 62 b1bsfsdb
63 64 32 22 3E 3C 72 65 cd2"><re
63 3E 3C 6D 73 67 63 64 c><ksgcd
3E 58 30 30 30 30 30 31 >X000001
3C 2F 6D 73 67 63 64 3E </ksgcd>
3C 6D 73 67 64 73 3E 4E <ksgds>N
6F 20 64 61 74 61 20 74 o data t
6F 20 72 65 74 75 72 6E o return
20 66 6F 72 20 72 65 71 for req
75 65 73 74 3C 2F 6D 73 uest</ks
67 64 73 3E 3C 2F 72 65 gds></re
63 3E 3C 2F 72 65 73 3E c></res>
3C 2F 72 6F 6F 74 3E 20 </root>
Note: My MQJava Progrm will do that removing header part.but Some scenario i need to control from MQSI node itself.
Any Suggestion
Thanks in Advance,
raj
Hi,
Of course you can in MQSI.
In your compute node you need only copy message body and MQMD or all needed headers except MQRFH2.
If you already have any compute node when you copy input message include its headers - try this:
SET "OutputRoot"."MQRFH2" = UNKNOWN; _________________ Best regards.
Yaakov
SWG, IBM Commerce, Israel
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