Forum Discussion

vijaydi's avatar
vijaydi
Contributor
7 years ago
Solved

JMS Mock - Extract Header Value from Incoming request and set in the JMS dispatch response property.

Hi,    I have a mock implementation of JMS message. I am trying to  capture custom header value from the incoming request into the mock and set that value in the response header of the mock respons...
  • nmrao's avatar
    nmrao
    7 years ago

    vijaydi

    Since that is a jms message, you can give a try below:

    //If works, then it should fetch the value of SubscriberId property

     

    log.info mockRequest.message.getStringProperty('SubscriberId')