We need to get the MQ put time and MQ get time, both converted to datetime precise to seconds. I saw the service variables "time-forwarded" and "response-complete", however they do not seem to have the data we wanted. Is there any other service variables or contexts that can be used?
This topic has been locked.
2 replies Latest Post - 2012-02-24T14:56:02Z by Jaango
Pinned topic Getting the MQ put time and MQ get time
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-02-24T14:56:02Z at 2012-02-24T14:56:02Z by Jaango
swlinn 100000E7QE1344 PostsACCEPTED ANSWER
Re: Getting the MQ put time and MQ get time2012-02-24T14:39:40Z in response to JaangoThe service variables are elapsed time in ms since the beginning of the request within DataPower. The MQ Put Date/Time are in the MQMD header:
<xsl:variable name="mqmdHeader" select="dp:parse(dp:request-header('MQMD'))"/> <xsl:variable name="putDate" select="normalize-space($mqmdHeader/MQMD/PutDate/text())"/> <xsl:variable name="putTime" select="normalize-space($mqmdHeader/MQMD/PutTime/text())"/>
SteveUpdated on 2014-03-25T03:01:57Z at 2014-03-25T03:01:57Z by iron-man