JMeter and TIBCO EMS
Is it possible to use Jmeter with TIBCO EMS? Because I am trying to connect to EMS servers through JMeter JMS plugin and not able to succeed on that.
Any help on this would be greatly appreciated.
EDIT: Error Log
WARN - jmeter.protocol.jms.sampler.JMSSampler: Name not found: 'com.tibco.tibjms.TibjmsQueueConnec开发者_如何学运维tionFactory' javax.naming.NameNotFoundException: Name not found: 'com.tibco.tibjms.TibjmsQueueConnectionFactory'
at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:713)
at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:489)
at javax.naming.InitialContext.lookup(Unknown Source)
at org.apache.jmeter.protocol.jms.sampler.JMSSampler.threadStarted(JMSSampler.java:295)
at org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:504)
at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:984)
at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:985)
at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:967)
at org.apache.jmeter.threads.JMeterThread.threadStarted(JMeterThread.java:479)
at org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:468)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:239)
at java.lang.Thread.run(Unknown Source)
We did come across this problem in the past but worked around using BSF Sampler and scripted using tib library in groovy.
Well that sounds like your ConnectionFactory
(via JNDI) could not be found on the EMS Server side. Check within TIBCO EMS what the configured connection factory names are ;)
Usually QueueConnectionFactory
should be there as default name.
- copy the jars from TIBCO_HOME\ems\version\lib to jmeter\lib
- Initial Context Factory: com.tibco.tibjms.naming.TibjmsInitialContextFactory
- restart jmeter
Follow below steps, it will work
Initial connection Factory : com.tibco.tibjms.naming.TibjmsInitialContextFactory
Provider URL : tcp://hostname:7222
ConnectionFactory : QueueConnectionFactory or(TopicConnectionFactory)
Destination : sample
username : raghu
password : raghu
精彩评论