|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
MQMD, MQRFH2, Empty Msg to BLOB |
« View previous topic :: View next topic » |
Author |
Message
|
shra_k |
Posted: Fri Apr 15, 2005 5:04 am Post subject: |
|
|
Apprentice
Joined: 30 Dec 2002 Posts: 37
|
thanks 'mqmatt' for pasting the link's contents ...all those PRBs will be converted into technotes for customers |
|
Back to top |
|
 |
datspats |
Posted: Sun Aug 19, 2007 10:35 pm Post subject: |
|
|
Voyager
Joined: 12 Apr 2007 Posts: 80 Location: Mumbai
|
further to mqmatt Post,
I need one suggestion, I am trying to have two paths one each for the empty message and non empty message using filter node check,
In case non-empty message i will use RCD to BLOB.
For the non empty is the follwing code ok in compute node to get the empty message in BLOB domain? (along with MQRFH2 Header).
SET OutputRoot.Properties = InputRoot.Properties;
SET OutputRoot.Properties.MessageSet = '';
SET OutputRoot.Properties.MessageType = '';
SET OutputRoot.Properties.MessageFormat = '';
SET OutputRoot.MQMD = InputRoot.MQMD;
SET OutputRoot.MQRFH2 = InputRoot.MQRFH2;
DECLARE parseOptions INTEGER BITOR(FolderBitStream, ValidateContent, ValidateValue, ValidateLocalError);
DECLARE mraMsg BLOB;
SET mraMsg = CAST('' AS BLOB CCSID InputRoot.MQMD.CodedCharSetId ENCODING InputRoot.MQMD.Encoding);
DECLARE creationPtr REFERENCE TO OutputRoot;
CREATE LASTCHILD OF creationPtr DOMAIN('BLOB') PARSE(mraMsg, InputRoot.MQMD.Encoding, InputRoot.MQMD.CodedCharSetId);
RETURN TRUE;
Please suugest alternate way to keep MQRFH2 header intact in case of null Message body!!
Regards |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Aug 20, 2007 1:41 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
How about just a few more lines
create lastchild of OutputRoot domain 'BLOB' name 'BLOB';
create lastchild of OutputRoot.BLOB name 'BLOB';
SET OutputRoot.BLOB.BLOB VALUE = NULL;
No costly casting or parsing...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
datspats |
Posted: Mon Aug 20, 2007 3:31 am Post subject: |
|
|
Voyager
Joined: 12 Apr 2007 Posts: 80 Location: Mumbai
|
Quote: |
SET OutputRoot.BLOB.BLOB VALUE = NULL; |
I think this statement causes to delete the message body node which we don't want. We want to keep this to preserve the MQRFH2 header for the future reference. else the MQRFH2 might be referenced as a body. Am I right fjb_saper?
Regards |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Aug 20, 2007 4:34 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
datspats wrote: |
Quote: |
SET OutputRoot.BLOB.BLOB VALUE = NULL; |
I think this statement causes to delete the message body node which we don't want. We want to keep this to preserve the MQRFH2 header for the future reference. else the MQRFH2 might be referenced as a body. Am I right fjb_saper?
Regards |
If you forget the VALUE key word it will remove the node. That is why it is essential no to omit the word VALUE when assigning a null value. _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
|
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
|
|
|
|