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.
Click New to create a new JMS Server, set the Name and Target properties and click Finish.
Navigate to JMS Modules.
Click New to create a new JMS Module, set the properties and click Finish.
In the Configuration tab, click New to create a new Connection Factory and set the properties.
Click Advanced Targeting, create a new SubDeployment and click Finish.
In the Configuration tab, click New to create a new Topic, set the properties and click Finish.
The JMS Topic was created!
Now, let’s configure Apache JMeter.
Go to Apache JMeter, right-click Test Plan, navigate to Add > Threads (Users) and then, select Thread Group.
In Thread Group, you can configure the number of threads (users) you want to simulate.
Right-click Thread Group, navigate to Add > Sampler and then, select JMS Publisher.
Set the properties.
Click Start to send messages to your JMS Topic and go to Oracle WebLogic Server Console to verify the number of received messages.
You also can create a JMS Subscriber in Apache JMeter to receive the messages.