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

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

book

Article ID: 11628

calendar_today

Updated On:

Products

CA Application Test CA Continuous Application Insight (PathFinder) Service Virtualization

Issue/Introduction

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?

Environment

DevTest all platforms.

Cause

N/A

Resolution

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

None.