Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Open two separate instances of JMeter by executing the following script from the <JMeter_Home>/bin folder: 
    • On windows: jmeter.bat
    • On Linux: sh jmeter.sh
  2. Create JMS subscribers in both JMeter instances. Name them JMS Durable Subscriber 01 and JMS Durable Subscriber 2 respectively. Use the following connection details (same as for the non-durable subscription).

    Initial Context Factoryorg.wso2.andes.jndi.PropertiesFileInitialContextFactory
    Provider URLThis should be the location where you have the jnditopics.properties file saved.
    Connection FactoryThis should be set to TopicConnectionFactory.
    DestinationThis should be the jndi name given to the topic hierarchy in the jnditopics.properties file. For example, to subscribe to all the topics in the topic hierarchy, enter 'All_Games'.
  3. In addition to the above configuations, be sure to add durable subscription IDs for both subscribers. Let's use Sub_1 and Sub_2 to identify the subscriptions.

    1. For JMS Durable Subscriber 01:

      Durable Subscription IDSub_1
    2. For JMS Durable Subscriber 02:

      Durable Subscription IDSub_2
  4. Right-click on the new test plan Thread Group and go to Add -> Listener -> View Results in Tree. This will create a listener node in the JMeter navigator for analysing the output of the subscription.
  5. Save the information.

  6. Execute both the JMeter instances. 
  7. Now, go to the management console of the Message Broker profile and go to Main -> Subscriptions -> Topic Subscription List. The durable subscriptions will be listed as active durable subscriptions:
  8. Now, open the JMeter instance for JMS Durable Subscriber 02 and close the connection. 
  9. Now, the disconnected durable subscriber will be listed as an inactive durable subscription in the management console as shown below.
     

...

We will now set up Apache JMeter as a JMS publisher. Note that, in

Note

In the previous steps, we created three subscriptions for All Topics in the topic hierarchy. This means all three subscribers should receive the messages published to any one of the topics in the topic hierarchy.

Follow the instructions given below.

...