4 Replies Latest reply on Sep 23, 2009 6:40 AM by timfox

    Testing HornetQ with JMeter

      I was trying load test HornetQ with JMeter samplers JMS Publisher and Subscriber.

      I am running the standalone HornetQ and entered these 3 values in JMeter:

      Initial Context Factory : org.jnp.interfaces.NamingContextFactory
      Provider URL : jnp://localhost:1099
      Connection Factory : org.hornetq.jms.client.HornetQConnectionFactory

      For some reason I get the error "javax.naming.NameNotFoundException: org.hornetq.jms.client.HornetQConnectionFactory not bound".

      I placed the needed jars hornetq-core-client.jar,hornetq-jms-client.jar,hornetq-transports.jar, jnp-client.jar in the jmeter/lib folder.

      Am I missing any other jars?

      Here is the error stack:
      2009/09/21 13:26:09 INFO - jmeter.protocol.jms.client.InitialContextFactory: created the JNDI initial context factory
      2009/09/21 13:26:09 ERROR - jmeter.protocol.jms.client.ConnectionFactory: Unable to find connection factory org.hornetq.jms.client.HornetQConnectionFactory, will retry. Error: javax.naming.NameNotFoundException: org.hornetq.jms.client.HornetQConnectionFactory not bound
      2009/09/21 13:26:09 ERROR - jmeter.protocol.jms.client.ConnectionFactory: Unable to find connection factory org.hornetq.jms.client.HornetQConnectionFactory, giving up. Error: javax.naming.NameNotFoundException: org.hornetq.jms.client.HornetQConnectionFactory not bound
      2009/09/21 13:26:09 ERROR - jmeter.protocol.jms.client.ConnectionFactory: Unable to find connection factory org.hornetq.jms.client.HornetQConnectionFactory, will retry. Error: javax.naming.NameNotFoundException: org.hornetq.jms.client.HornetQConnectionFactory not bound
      2009/09/21 13:26:10 ERROR - jmeter.protocol.jms.client.ConnectionFactory: Unable to find connection factory org.hornetq.jms.client.HornetQConnectionFactory, giving up. Error: javax.naming.NameNotFoundException: org.hornetq.jms.client.HornetQConnectionFactory not bound
      2009/09/21 13:26:10 ERROR - jmeter.protocol.jms.client.ConnectionFactory: Unable to find connection factory org.hornetq.jms.client.HornetQConnectionFactory, will retry. Error: javax.naming.NameNotFoundException: org.hornetq.jms.client.HornetQConnectionFactory not bound
      2009/09/21 13:26:10 ERROR - jmeter.protocol.jms.client.InitialContextFactory: JNDI error: teamsite not bound
      2009/09/21 13:26:10 ERROR - jmeter.threads.JMeterThread: Error while processing sampler 'JMS Subscriber' : java.lang.NullPointerException
      at org.apache.jmeter.protocol.jms.client.ReceiveSubscriber.(ReceiveSubscriber.java:87)
      at org.apache.jmeter.protocol.jms.sampler.SubscriberSampler.initReceiveClient(SubscriberSampler.java:115)
      at org.apache.jmeter.protocol.jms.sampler.SubscriberSampler.sampleWithReceive(SubscriberSampler.java:185)
      at org.apache.jmeter.protocol.jms.sampler.SubscriberSampler.sample(SubscriberSampler.java:131)
      at org.apache.jmeter.protocol.jms.sampler.BaseJMSSampler.sample(BaseJMSSampler.java:67)
      at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:346)
      at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:243)
      at java.lang.Thread.run(Unknown Source)