Service Virtualization

  • 1.  Get (or set) request timestamp to use it in response

    Posted Jul 05, 2017 08:47 AM

    Hi all,

     

    in the JMS messages that feed my virtual service there is no timestamp (by design). Anyway I need to get the time when request arrived to virtual service in order to write it to response meta-data. I'm also setting a JMS property to System.currentTimeMillis() in the response meta-data in order to get (by post-elaboration by another system) the total time virtualized service took to answer the request.

     

    Is there a way to set a property (or something else to use after) in the request to the timestamp of request arrival? (In this case the timestamp of consuming the JMS message by the service)

     

    Thank you very much.

    Regards.



  • 2.  Re: Get (or set) request timestamp to use it in response
    Best Answer

    Broadcom Employee
    Posted Jul 06, 2017 05:12 PM

    Please look at the communities link below:

     

    Messaging: How do I access the MQ Message Descriptor (MQMD) Header? 

     

    hope this helps.  

     

    Thanks

     

    Shiney. 



  • 3.  Re: Get (or set) request timestamp to use it in response

    Posted Jul 07, 2017 09:37 AM

    Alessandro,

     

    Did the community link that Shiney provided help you out with this issue?