
17:46:43,663 INFO o.j.r.PluginManager: Plugins Status: This means that as soon as Sub_2 becomes active, the message will be delivered.17:46:43,532 INFO o.j.r.JARSourceHTTP: Found cached repo However, the unconsumed message is listed as a pending delivery for the subscriber as shown above.
The second durable subscription (Sub_2) has not received the message because the subscription was inactive. Verify this from the View Results in Tree tab of the respective JMeter client. The first durable subscription (Sub_1) has also received the published message. You can verify this from the View Results in Tree tab of the respective JMeter client. The non-durable topic subscription has immediately received the published messaged. Go back to the management console of the MB profile and go to Subscriptions -> Topic Subscription List in the Main tab. You now have a JMS client ready to send messages. For example, you cannot specify 'All_Games' as the destination because the 'All_Games' jndi name corresponds to multiple topics (that is, the 'games' topic and its child topics). This means, you cannot publish messages to multiple topics at the same time. For example, the 'Football_Only' jndi name corresponds to the 'football' topic only. Note that the publishing destination has to be a specific topic in the topic hierarchy. Select this node and enter the following details: You will now have a JMS Subscriber node in the left navigator. Right-click the new thread group and go to Add -> Sampler -> JMS Subscriber. The new thread group will now be listed in the left navigator under the Test Plan. Create a new thread group: Right-click Test Plan (in the left navigator) and go to Add -> Threads (Users) -> Thread Group. Go to the JMeter UI and create a JMS subscriber as explained below. Start a new JMeter instance by executing the following script from the /bin folder:. For this tutorial, we will create a subscription for All Topics in the topic hierarchy. We will now set up Apache JMeter as a JMS subscriber for the topics we created in the previous step. Read more about durable/non-durable topic subscriptions. When a subscriber client uses a non-durable subscription, the client can receive messages only when the subscriber-broker connection is active. The details in this file will establish the connection between your JMeter clients and the required topics in the Message Broker instance. Step 2: Creating the jnditopics.properties fileĬreate the jnditopics.properties file shown below and save it to a location in your system. Repeat the steps to add the remaining subtopics until you get the complete topics hierarchy. Enter 'football' as the subtopic name and click Add Topic. Click Add Subtopic to open the Add Sub Topic screen. Click Add Topic and the new topic will be listed in the Topic List page. You can access the Topic List page by clicking Topic -> List in the Main tab of the navigator. Enter 'games' as the topic name in the Topic field. Log in to the management console using the credentials of the default system administrator: admin/admin.
Let's start by creating the following hierarchy: In the following steps, we will go through the basics of creating topics in the MB profile by creating a simple hierarchy of topics and then setting up JMS clients as the subscriber and publisher for the topics. Copy the following JARs from the /wso2/broker/client-lib directory to the /lib folder:.Note that JMeter 2.13 version is used for this tutorial.