Unanswered question

Connecting to RabbitMQ from Neoload

Hello,

I have a scenario where i have to connect to Rabbit MQ and push messages. How do we perform those actions.
We have a setup where we connect to IBM MQ and push messages from Neoload. Do we have similar setup for RabbitMQ as well?

Abhinav S.
Abhinav S.

Abhinav S.

Level
0
23 / 100
points

Answers

Sébastien R.
Sébastien R.

Sébastien R.

Level
1
122 / 750
points
Team

Hi Abhinav,

You can connect to Rabbit MQ and push messages with the JMS advanced actions embbeded in NeoLoad ("Connect" and "Queue - Send" advanced actions).

Here is the configuration needed:
1/ Insert this 4 jar files in the extlib folder of NeoLoad (either installation folder, or project folder):

  • amqp-client-5.1.2.jar
  • fscontext-4.5-b25.jar
  • jms-api-1.1-rev-1.jar
  • rabbitmq-jms-1.8.1.jar

2/ Configure the Connect advanced action as follow:

  • initialContextFactory = com.sun.jndi.fscontext.RefFSContextFactory
  • connectionFactory = ConnectionFactory
  • providerURL = file:///C:/rabbitmq-bindings
  • destination = <yourQueueName>
  • On my disk, the folder "C:/rabbitmq-bindings" contains one file ".bindings" with below content:
    ConnectionFactory/ClassName=javax.jms.ConnectionFactory
    ConnectionFactory/FactoryName=com.rabbitmq.jms.admin.RMQObjectFactory
    queue1/ClassName=javax.jms.Queue
    queue1/FactoryName=com.rabbitmq.jms.admin.RMQObjectFactory
    queue1/RefAddr/0/Content=jms/Queue
    queue1/RefAddr/0/Type=name
    queue1/RefAddr/0/Encoding=String
    queue1/RefAddr/1/Content=javax.jms.Queue
    queue1/RefAddr/1/Type=type
    queue1/RefAddr/1/Encoding=String
    queue1/RefAddr/2/Content=com.rabbitmq.jms.admin.RMQObjectFactory
    queue1/RefAddr/2/Type=factory
    queue1/RefAddr/2/Encoding=String
    queue1/RefAddr/3/Content=queue1
    queue1/RefAddr/3/Type=destinationName
    queue1/RefAddr/3/Encoding=String