In an MQ VS, how to set a valid message persistence value?

Document ID : KB000011628
Last Modified Date : 14/02/2018
Show Technical Document Details

This article will provide information on setting a valid message persistence value for an MQ Virtual Service.


In an MQ Virtual Service, how to set a valid message persistence value?

DevTest all platforms.

After creating a VS with new MQ transport protocol, the message persistence can be set with "msg.persistence" property in VSI-->Response-->Meta Data as long as the values are valid.

msg.persistence can be 0 (Not persistent), 1 (Persistent) or 2 (Default to Queue). 

If you set VSI Response-->Meta data with msg.persistence=1 or 0 then you should see the value 1 or 0 when you receive the message. This will be different if you set msg.persistence=2. You will see 0 or 1 based on what the queue persistence was set to in MQ server ('2' means "Default to Queue"). 

Additional Information: