Posted: Mon May 07, 2007 5:33 am Post subject: Using CorrelId and ApplIdentityData for log purposes
Novice
Joined: 07 May 2007 Posts: 13
Hello,
we intend to establish a simple logging system using MQMD.Report options in ESQL. For that purpose the original message flows should simply write little pieces of information to MQMD.CorrelId and MQMD.ApplIdentityData as shown in the code example below. The broker then should write all report messages to a central ReplyToQueue from where a single logger flow evaluates the MQMD parameters and writes them to a logging database. However, we could see that within the generated report messages information in CorrelId is kept but the information in MQMD.ApplIdentityData is lost.
(1) Are there any techniques to "save" information in ApplIdentityData or in any other MQMD field than CorrelId?
(2) The generation of report messages does not seem to work with MQHSAP messages. Any ideas for that?
Thanks!
CREATE COMPUTE MODULE RequestReports
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
SET OutputRoot=InputRoot;
SET OutputRoot.MQMD.Report=MQRO_PASS_CORREL_ID + MQRO_COD_WITH_DATA;
SET OutputRoot.MQMD.ReplyToQ='TRACKING_REPORTS';
SET OutputRoot.MQMD.CorrelId=
CAST('myBusinessProcessId_Suff' AS BLOB CCSID OutputRoot.Properties.CodedCharSetId);
SET OutputRoot.MQMD.ApplIdentityData='more_data_to_correlate_reports'; --32-byte long
RETURN TRUE;
END;
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