Hi Gatling,
Can someone please share how to connect to IBM MQ to run load test Via Gatling. I am getting below error. Best Regards, Chandra
Exception in thread “main” javax.naming.NoInitialContextException: Cannot instantiate class: com.ibm.mq.jms.context.WMQInitialContextFactory
val jmsConfig = jms
.connectionFactoryName("ConnectionFactory")
.url("[e2e2.yyy.com:1423](http://e2e2.yyy.com:1423)")
.contextFactory("com.ibm.mq.jms.context.WMQInitialContextFactory")
.listenerCount(1)
.usePersistentDeliveryMode
val scn = scenario("JMS DSL test").repeat(1) {
exec(jms("req testing").send
.queue("QC.G2_IN")
.textMessage("hello from gatling jms dsl"))
}
setUp( scn.inject(rampUsers(10) over (10)))
.protocols(jmsConfig)
09:23:02.819 [GatlingSystem-akka.actor.default-dispatcher-3] INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started
09:23:03.106 [GatlingSystem-akka.actor.default-dispatcher-2] INFO i.g.c.stats.writer.ConsoleDataWriter - Initializing
09:23:03.106 [GatlingSystem-akka.actor.default-dispatcher-3] INFO i.g.c.stats.writer.LogFileDataWriter - Initializing
09:23:03.116 [GatlingSystem-akka.actor.default-dispatcher-2] INFO i.g.c.stats.writer.ConsoleDataWriter - Initialized
09:23:03.136 [GatlingSystem-akka.actor.default-dispatcher-3] INFO i.g.c.stats.writer.LogFileDataWriter - Initialized
Exception in thread “main” javax.naming.NoInitialContextException: Cannot instantiate class: com.ibm.mq.jms.context.WMQInitialContextFactory