Topic
2 replies Latest Post - ‏2012-02-24T14:56:02Z by Jaango
Jaango
Jaango
256 Posts
ACCEPTED ANSWER

Pinned topic Getting the MQ put time and MQ get time

‏2012-02-24T02:37:12Z |
Hi,

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?
Updated on 2012-02-24T14:56:02Z at 2012-02-24T14:56:02Z by Jaango
  • swlinn
    swlinn
    1344 Posts
    ACCEPTED ANSWER

    Re: Getting the MQ put time and MQ get time

    ‏2012-02-24T14:39:40Z  in response to Jaango
    The 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())"/>
    


    Regards,
    Steve
    Updated on 2014-03-25T03:01:57Z at 2014-03-25T03:01:57Z by iron-man
    • Jaango
      Jaango
      256 Posts
      ACCEPTED ANSWER

      Re: Getting the MQ put time and MQ get time

      ‏2012-02-24T14:56:02Z  in response to swlinn
      Awesome. Thanks, Steve