...
Table of Contents | ||
---|---|---|
|
...
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 0 (amqp-client-5.2.0.jar). This dependency is packaged with the distribution.
...
- Go to Parasoft > Preferences and click System Properties.
- Select System Properties and click Add JARs.
- 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.
- Click Apply.
- 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
Scroll Table Layout | ||
---|---|---|
|
Option | Description |
---|---|
Hostname | Defines the hostname of the Rabbit MQ server. If this field is empty, the default value of |
Port | Defines the port of the Rabbit MQ server. If this field is empty, the default Rabbit MQ port will be used. |
Use SSL | Set 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 |
Topology Recovery | Set to |
Configuring Listener Settings
Scroll Table Layout | ||
---|---|---|
|
...
Configuring ReplyTo Settings
Scroll Table Layout | ||
---|---|---|
|
...
Configuring Logging Settings
Scroll Table Layout | ||
---|---|---|
|
...