# Gatling JMS with IBM sing JNDI file connection

**URL:** <https://community.gatling.io/t/gatling-jms-with-ibm-sing-jndi-file-connection/5718>\
**Category:** Gatling (Open-Source)\
**Created:** [July 15, 2020, 4:56am UTC](https://community.gatling.io/t/gatling-jms-with-ibm-sing-jndi-file-connection/5718 "2020-07-15T04:56:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ravi\_Kumar](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@Ravi\_Kumar](https://community.gatling.io/u/Ravi_Kumar)\
**Post date:** [July 15, 2020, 4:56am UTC](https://community.gatling.io/t/gatling-jms-with-ibm-sing-jndi-file-connection/5718/1 "2020-07-15T04:56:09Z")

</div>

I am using the gatling 2.3.0 version for jms loadtesting against IBM MQ and using JNDI file binding method.

i am able to connect and send the XML message to ibm mq queue but somehow original message was appended with extra tags like etc .  
these tags are appended at the start of the message.

Objective here to send the original message only without extra tags, Is there a way to achieve this in gatling?

val jmsConfigMQ1 = connectionFactoryName(DEFAULT\_QCF\_NAME\_MQ\_HOST\_1)  
.url(“file://Users/Documents”)  
.contextFactory(JNDI\_CONTEXT)  
.listenerCount(1)  
.usePersistentDeliveryMode

val scnID = scenario("Load testing).during(1 hour) {  
exec(jms(“test”).send  
.queue(“MESSAGES.QUEUE”)  
.textMessage(xml-file-content)  
)  
}

setUp(scnID.inject(rampUsers(40) over(1 seconds))  
.protocols(jmsConfigMQ1)

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [July 15, 2020, 7:58am UTC](https://community.gatling.io/t/gatling-jms-with-ibm-sing-jndi-file-connection/5718/2 "2020-07-15T07:58:36Z")

</div>

Those are added by the IBM MQ java driver, not by Gatling.  
I recommend you reach out for your IBM support and real MQ experts.
