Thanks for your responses Sebb,
Your advice has gotten us closer... after putting "ConnectionFactory" in
for the Connection Factory setting, we are getting a new error. We have
also tried "TopicConnectionFactory", but we get the same error. It does
appear that a connection is made to the MQ broker, it just is failing to
connect to a topic.
So now our sampler is this:
<PublisherSampler guiclass="JMSPublisherGui" testclass="PublisherSampler"
testname="JMS Publisher" enabled="true">
<stringProp name="jms.jndi_properties">false</stringProp>
<stringProp
name="jms.initial_context_factory">org.apache.activemq.jndi.ActiveMQInitia
lContextFactory</stringProp>
<stringProp
name="jms.provider_url">vm://localhost:61616</stringProp>
<stringProp
name="jms.connection_factory">ConnectionFactory</stringProp>
<stringProp name="jms.topic">TEST.FOO</stringProp>
<stringProp name="jms.security_principle"></stringProp>
<stringProp name="jms.security_credentials"></stringProp>
<stringProp name="jms.text_message">123456789</stringProp>
<stringProp name="jms.input_file"></stringProp>
<stringProp name="jms.random_path"></stringProp>
<stringProp name="jms.config_choice">jms_use_text</stringProp>
<stringProp
name="jms.config_msg_type">jms_text_message</stringProp>
<stringProp name="jms.iterations"></stringProp>
<boolProp name="jms.authenticate">false</boolProp>
</PublisherSampler>
The error message we are stuck on is this:
2010/04/06 13:51:38 ERROR -
jmeter.protocol.jms.client.InitialContextFactory: JNDI error: TEST.FOO
The full log looks like this:
2010/04/06 13:51:38 INFO - jmeter.engine.StandardJMeterEngine: Starting 1
threads for group Thread Group. Ramp up = 1.
2010/04/06 13:51:38 INFO - jmeter.engine.StandardJMeterEngine: Thread
will continue on error
2010/04/06 13:51:38 INFO - jmeter.engine.StandardJMeterEngine: All
threads have been started
2010/04/06 13:51:38 INFO - jmeter.threads.JMeterThread: Thread started:
Thread Group 1-1
2010/04/06 13:51:38 INFO - org.apache.activemq.broker.BrokerService:
Using Persistence Adapter: AMQPersistenceAdapter(activemq-data\localhost)
2010/04/06 13:51:38 INFO -
org.apache.activemq.store.amq.AMQPersistenceAdapter: AMQStore starting
using directory: activemq-data\localhost
2010/04/06 13:51:38 INFO - org.apache.activemq.kaha.impl.KahaStore: Kaha
Store using data directory activemq-data\localhost\kr-store\state
2010/04/06 13:51:38 INFO -
org.apache.activemq.store.amq.AMQPersistenceAdapter: Active data files: []
2010/04/06 13:51:38 INFO - org.apache.activemq.broker.BrokerService:
ActiveMQ 5.3.0 JMS Message Broker (localhost) is starting
2010/04/06 13:51:38 INFO - org.apache.activemq.broker.BrokerService: For
help or more information please see: http://activemq.apache.org/
2010/04/06 13:51:38 INFO - org.apache.activemq.kaha.impl.KahaStore: Kaha
Store using data directory activemq-data\localhost\kr-store\data
2010/04/06 13:51:38 INFO - org.apache.activemq.broker.BrokerService:
ActiveMQ JMS Message Broker (localhost,
ID:SM-NYC-RSCHULTHEIS-1908-1270575660240-0:3) started
2010/04/06 13:51:38 INFO - org.apache.activemq.broker.TransportConnector:
Connector vm://localhost Started
2010/04/06 13:51:38 ERROR -
jmeter.protocol.jms.client.InitialContextFactory: JNDI error: TEST.FOO
2010/04/06 13:51:38 INFO -
org.apache.activemq.broker.jmx.ManagementContext: JMX consoles can connect
to service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
2010/04/06 13:51:38 INFO - jmeter.protocol.jms.client.Publisher: created
the topic connection successfully
2010/04/06 13:51:38 INFO - jmeter.threads.JMeterThread: Thread finished:
Thread Group 1-1
2010/04/06 13:51:38 INFO - jmeter.engine.StandardJMeterEngine: Ending
thread Thread Group 1-1
2010/04/06 13:51:38 INFO - jmeter.engine.StandardJMeterEngine: Stopping
test
2010/04/06 13:51:38 INFO - jmeter.engine.StandardJMeterEngine: Notifying
test listeners of end of test
2010/04/06 13:51:38 INFO - jmeter.protocol.jms.client.Publisher:
Publisher closed
2010/04/06 13:51:38 INFO - org.apache.activemq.broker.TransportConnector:
Connector vm://localhost Stopped
2010/04/06 13:51:38 INFO - org.apache.activemq.broker.BrokerService:
ActiveMQ Message Broker (localhost,
ID:SM-NYC-RSCHULTHEIS-1908-1270575660240-0:3) is shutting down
2010/04/06 13:51:38 INFO - org.apache.activemq.broker.BrokerService:
ActiveMQ JMS Message Broker (localhost,
ID:SM-NYC-RSCHULTHEIS-1908-1270575660240-0:3) stopped
2010/04/06 13:51:38 INFO - jmeter.gui.util.JMeterMenuBar:
setRunning(false,*local*)
2010/04/06 13:51:38 INFO - jmeter.engine.StandardJMeterEngine: Test has
ended
We have also experimented with using jndi.properties files with contents
like this:
java.naming.factory.initial =
org.apache.activemq.jndi.ActiveMQInitialContextFactory
java.naming.provider.url = vm://localhost:61616
topic.MyTopic = TEST.FOO
connectionFactoryNames = topicConnectionFactory
When we do that, we get stuck on this error:
2010/04/06 14:26:36 ERROR -
jmeter.protocol.jms.client.InitialContextFactory: JNDI error: Need to
specify class name in environment or system property, or as an applet
parameter, or in an application resource file:
java.naming.factory.initial
Lastly, my colleague found this bug report:
http://osdir.com/ml/jmeter-user.jakarta.apache.org/2010-02/msg00068.html
So we tried a building JMeter fresh from source... the same set of errors
happens in the same way.
Thanks for any advice!
~Rob Schultheis
---------------------------------------------------------------------------
This message is intended only for the addressee. Please notify sender by
e-mail if you are not the intended recipient. If you are not the intended
recipient, you may not copy, disclose, or distribute this message or its
contents to any other person and any such actions may be unlawful.
SecondMarket, Inc. (Member FINRA/SIPC/MSRB) ("SecondMarket") does not
accept time sensitive, action-oriented messages or transaction orders,
including orders to purchase or sell securities, via e-mail. SecondMarket
reserves the right to monitor and review the content of all messages sent
to or from this e-mail address. Messages sent to or from this e-mail
address may be stored on the SecondMarket e-mail system and archived in
accordance with FINRA and SEC regulations.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]