This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

MQ Service Virtualization

Hi Team,

We have a requirement to virtualize MQ, we need to simulate host system calls which happens via MQ protocol during unavailability of host system SV server should respond.

Requirement is to publish a XML message to a request queue and subscribe with response queue ( 2 different queues request and response queues accordingly ).

Could you please help how can we configure the queue connection and create a service to publish/subscribe messages.

Thanks in advance

Mohammed Sheeraz

  • Hi,

    I'm not sure if I got your requirement correctly. XML over MQ virtual service subscribes to a request queue and publishes responses to a response queue in Simulation mode.

    If you have two pairs of request-response queues, then you need two have two virtual services - each needs to subscribe to one pair.

    If two request-response queue pairs exist due to load balancing and you basically need to have two identical virtual service, you can create first virtual service, then create a template and based on the template instantiate second virtual service and just provide second set of request-response queues in the virtual service configuration.


  • Hi Jakub,

    Thanks for your response.

    Yes, the requirement is XML over MQ virtual service which subscribes to a request queue and publishes responses to a response queue in Simulation mode.

    As I am new to this tool, could you please advise the steps how can we create from scratch and validate?

    1. How to configure MQ connection is there any pre-requisites jar files required to establish the connection? 

    2. How to assign the request queue to subscribe a message and publish response to a response queue?

    3. How can we test the service locally and deploy it in the server?

    It would be really very helpful if I get some support to create a service.

    Thanks & Regards,

    Mohammed Sheeraz

  • Hi Mohammed,

    1. No prerequisites required. MQ Client is bundled in SV installation. Please see our help on MQ Agent configuration to understand how to configure the connection:

    2. You need to provide the queues in the virtual service configuration. Because there are usually 4 queues involved (2 queues used by real service + 2 newly created queues for virtual service), it's a good idea to draw a diagram how they will be connected together to avoid misunderstandings. You can check the diagram illustrating those 4 queues in the help as well:

    3. You can run the virtual service inside an Embedded Server in SV Designer - no SV Server required for that. If you are referring how to test it without access to the MQ Server, you can run your own MQ Server locally. Easiest option is likely via Docker -



  • Hello Jakub,

    Thanks a lot for your steps it is really helpful.

    I have followed the steps, I could able to establish the connection for websphere agent for real queues as you mentioned (2 queues used by real service + 2 newly created queues for virtual service) 

    How to create virtual queues ? I tried browsing dont see any virtualized destinations 

    Could you please help.


    Mohammed Sheeraz

  • The queues are typically created by MQ administrators upon users request.

    If your MQ user has enough privileges however, you can also create them directly from the SV Designer:

    • click on the Browse button next to the queue field
    • find the real request queue and select it
    • click on Virtualize button - this will create a new queue inside MQ (by default with _virt suffix)