Im trying to create a virtual service using IBM Native MQ and the scenario is like this there will be a request sent to the request queue and listener should receive this and send one acknowledgement and one response to the response queue in the respond step.
is it possible to send 2 responses (1 ack and 1 response ) in single transaction to the response queue?
What exactly do you mean by "Acknowledgement"? Is this another message like the actual response? Does it go to the same response queue or to a different queue?
You can send multiple response messages by simple adding more responses to your RR pair transaction, or by recording multiple responses, or by manually adding a second response to a transaction in the service image.
If the "acknowledgement" message needs to go to a different queue then this post should tell you everything you need to know about having multiple response queues in a virtual service.
If the "acknowledgement" is not an actual message then I'm going to need more information.
let me explain the complete scenario.
this is for HTTP/HTTPs protocol.
when application sends one request to the VSM then VSM should send 2 different responses.
I have tried adding two responses in the VSI step by using "Add a new response to the transaction" option.
after that i tried hitting the VSM and i can see only one response.
how to make VSM to send multiple responses in the same transaction.
As Kevin said, you can send multiple response messages if the transactions are captured with multiple responses in the VSI during recording or manually by adding a second response to a transaction in the service image and changed queue information in the Meta Data.
I'm confused. Your original post was about IBM MQ, but now you are asking about HTTP/S. I'm not as familiar with the way VSE's HTTP/S protocol works, but my understanding is that multiple responses are not a standard thing with HTTTP, and additional steps may be required to make it work. It depends on your exact scenario. Do both HTTP responses go back to the original requester over the same connection, or does VSE have to initiate a second HTTP connection to send one of the responses?
Did Kevin's response help you?