Using JMeter to generate JMS Messages

Tweet about this on TwitterShare on Facebook0Share on LinkedIn7Share on Google+0

I worked in a project that I used the Oracle Event Processing to consume JMS Topic messages from an Oracle WebLogic Server. There are many ways to generate and send messages to a JMS Topic, and one of them is use Apache JMeter. Apache JMeter is an open source software from Apache Software Foundation and you can know more about it here: http://jmeter.apache.org.

In this post, you will learn how to configure Apache JMeter to publish JMS Topic Messages in Oracle WebLogic Server.

First of all, let’s create the JMS Topic.
Go to Oracle WebLogic Server Console and navigate to JMS Servers.

using-jmeter-to-generate-jms-messages1

Click New to create a new JMS Server, set the Name and Target properties and click Finish.

using-jmeter-to-generate-jms-messages2

using-jmeter-to-generate-jms-messages3

using-jmeter-to-generate-jms-messages4

Navigate to JMS Modules.

using-jmeter-to-generate-jms-messages5

Click New to create a new JMS Module, set the properties and click Finish.

using-jmeter-to-generate-jms-messages6

using-jmeter-to-generate-jms-messages7

using-jmeter-to-generate-jms-messages8

In the Configuration tab, click New to create a new Connection Factory and set the properties.

using-jmeter-to-generate-jms-messages9

using-jmeter-to-generate-jms-messages10

Click Advanced Targeting, create a new SubDeployment and click Finish.

using-jmeter-to-generate-jms-messages11

using-jmeter-to-generate-jms-messages12

using-jmeter-to-generate-jms-messages16

In the Configuration tab, click New to create a new Topic, set the properties and click Finish.

using-jmeter-to-generate-jms-messages14

using-jmeter-to-generate-jms-messages15

using-jmeter-to-generate-jms-messages16

The JMS Topic was created!

using-jmeter-to-generate-jms-messages17

Now, let’s configure Apache JMeter.
Go to Apache JMeter, right-click Test Plan, navigate to Add > Threads (Users) and then, select Thread Group.

using-jmeter-to-generate-jms-messages18

In Thread Group, you can configure the number of threads (users) you want to simulate.

using-jmeter-to-generate-jms-messages19

Right-click Thread Group, navigate to Add > Sampler and then, select JMS Publisher.

using-jmeter-to-generate-jms-messages20

Set the properties.

using-jmeter-to-generate-jms-messages21

Done!
Click Start to send messages to your JMS Topic and go to Oracle WebLogic Server Console to verify the number of received messages.

using-jmeter-to-generate-jms-messages22

You also can create a JMS Subscriber in Apache JMeter to receive the messages.

using-jmeter-to-generate-jms-messages23

Tweet about this on TwitterShare on Facebook0Share on LinkedIn7Share on Google+0

Author: Waslley Souza

Consultor Oracle com foco em tecnologias Oracle Fusion Middleware e SOA. Certificado Oracle WebCenter Portal, Oracle ADF e Java.

Leave a Reply

Your email address will not be published. Required fields are marked *