Author |
Message
|
wischlei |
Posted: Thu Nov 10, 2005 4:57 am Post subject: Create OutputRoot from BLOB? |
|
|
Novice
Joined: 11 Feb 2004 Posts: 21 Location: Germany
|
Hi
Is there a way to create the full OutputRoot from a BLOB ?
I'd like to store messages in a database and be able to replay them later , e.g. when an error condition has been fixed. _________________ Winfried Schleipen |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Nov 10, 2005 5:02 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
ASBITSTREAM
CREATE...PARSE _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
wischlei |
Posted: Thu Nov 10, 2005 5:13 am Post subject: |
|
|
Novice
Joined: 11 Feb 2004 Posts: 21 Location: Germany
|
Hi
thanks for the quick reply, but I think you did not quite get my point.
I want to recreate the full message including MQMD and all other headers from a blob that I created from blbMsg = ASBITSTREAM(InputRoot).
Is there a way the recreate that InputRoot later on from the blbMsg read from a database and e.g. send in an element of an XML message?
<msg>
<fullMsgIncludingMQMD>....</...>
</msg>
??? _________________ Winfried Schleipen |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Nov 10, 2005 5:18 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
CREATE...PARSE
SET OutputRoot.MQMD.Format = ... _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
wischlei |
Posted: Thu Nov 10, 2005 6:56 am Post subject: Create OutputRoot from BLOB? |
|
|
Novice
Joined: 11 Feb 2004 Posts: 21 Location: Germany
|
Hi
I managed to parse the MQMD from the BLOB. But then I do not know which headers to parse next (there might be several, e.g MQIIH and MQFRH2 and in case of MQIIH the format is set to MQIMS thus not showing me that an MQRFH2 is following).
Is there any solution to that problem (I would appreciate a bit more information in the answers if possible)? _________________ Winfried Schleipen |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Nov 10, 2005 7:01 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
MQ headers always indicate the format of the next section of the message, as far as I know.
Thus, if you find that the MQMD format is MQIH, then the next section of the message should be parseable as an MQIH header. If that header indicates a format of MQRFH2, then the next section after the MQIH should be an MQRFH2. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|