Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space FUNCTDEV and version SVC2023.2

...

Table of Contents
maxLevel1

...

Introduction

The Rabbit MQ Message Listener is a custom message listener extension for Parasoft Virtualize. The listener connects to a Rabbit MQ broker and consumes messages on a specified queue. Depending on the mode of operation (passthrough or virtualize), the messages are forwarded to the real backend system or forwarded to Virtualize, respectively. This listener assumes the publisher uses the Reply To field to define the queue/routing key that will be used when sending the response. The listener also has options to enable the creation of the reply to queue on the fly or to use a predefined reply to queue.

...

The Rabbit MQ Message Listener is implemented as com.parasoft.virtualize.listener.rabbitmq-<version><VERSION>.jar, which depends upon Rabbit MQ AMQP Client 5.2.0 (amqp-client-5.2.0.jar). This dependency is packaged with the distribution.

...

  1. Go to Parasoft > Preferences and click System Properties. 
  2. Select System Properties and click Add JARs.
    Image Removed
  3. In the file chooser that opens, Click Add JARs and select com.parasoft.virtualize.listener.rabbitmq-<version><VERSION>.jar. Once this jar file is added to the classpath, all of the required dependencies will be loaded.
  4. Click Apply.
  5. Restart Virtualize.

Command Line Installation

Add the com.parasoft.virtualize.listener.rabbitmq-<version><VERSION>.jar file to the system.properties.classpath property in your settings properties file.

...

system.properties.classpath=<path to jar><PATH_TO_JAR>/com.parasoft.virtualize.listener.rabbitmq-1.0.1.jar

...

From the Virtualize Server view, select the virtual asset you want to use fpr for the custom message listener, then navigate to Transports> Transports > Custom in the Virtual Asset Deployment Settings. If multiple listeners are installed, use the Select Implementation drop-down menu Implementation menu to select com.parasoft.virtualize.listener.rabbitmq.RabbitMQListener.

You can configure the following settings.

Configuring Connection Settings

Image Modified

Scroll Table Layout
widths30%,70%

Option

Description

Hostname

Defines the hostname of the Rabbit MQ server. If this field is empty, the default value of localhost will be used.

Port

Defines the port of the Rabbit MQ server. If this field is empty, the default Rabbit MQ port will be used.

Use SSLSet to true to use SSL when connecting to the Rabbit MQ Server. Default The default is false.

Username

Defines the Rabbit MQ username.

Password

Defines the Rabbit MQ password.

Virtual Host Name

Defines the Rabbit MQ Virtual Host to connect to.

Automatic Connection Recovery

Set to true if the listener should attempt to automatically recover from connection failures. Default The default is true.

Topology Recovery

Set to true if the listener should attempt to automatically recover from topological failures (i.e.that is, failures with exchanges or queues). Default The default is true.

Configuring Listener Settings

Image Modified

Scroll Table Layout
widths30%,70%

...

Configuring ReplyTo Settings

Image Modified

Scroll Table Layout
widths30%,70%

...

Configuring Logging Settings

Image Modified

Scroll Table Layout
widths30%,70%

...