# JMS sendmessage to SQS

**URL:** <https://community.gatling.io/t/jms-sendmessage-to-sqs/6186>\
**Category:** Gatling (Open-Source)\
**Created:** [July 19, 2021, 9:13pm UTC](https://community.gatling.io/t/jms-sendmessage-to-sqs/6186 "2021-07-19T21:13:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthik\_Nathan](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@Karthik\_Nathan](https://community.gatling.io/u/Karthik_Nathan)\
**Post date:** [July 19, 2021, 9:13pm UTC](https://community.gatling.io/t/jms-sendmessage-to-sqs/6186/1 "2021-07-19T21:13:58Z")

</div>

Hello,

I have been following the below article for load testing with AWS SQS:  
[https://gatling.io/2019/01/load-testing-aws-sqs-with-gatling/](https://gatling.io/2019/01/load-testing-aws-sqs-with-gatling/)

The example uses the textMessage method for sending a message. For my use case, I will need to send a nested map to SQS which will then be taken by an application. I tried using the mapMessage method but it seems to fail with:  
17:08:19.253 [GatlingSystem-akka.actor.default-dispatcher-9][ERROR][Action.scala:71] i.g.j.a.Send - ‘jmsSend-2’ crashed with ‘j.j.JMSException: Unsupported Method’, forwarding to the next one

I even tried sending the following:  
mapMessage(“foo” → “bar”). That failed as well. Any help would be highly appreciated!  
gatling version: 3.0.3

---

<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 19, 2021, 9:16pm UTC](https://community.gatling.io/t/jms-sendmessage-to-sqs/6186/2 "2021-07-19T21:16:29Z")

</div>

First thing first, Gatling 3.0.3 is very old.  
Please upgrade to a modern maintained version (latest is 3.6.1) so people can try to help you.

---

<div class="post-metadata">

**Author:** ![Karthik\_Nathan](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@Karthik\_Nathan](https://community.gatling.io/u/Karthik_Nathan)\
**Post date:** [July 19, 2021, 9:24pm UTC](https://community.gatling.io/t/jms-sendmessage-to-sqs/6186/3 "2021-07-19T21:24:34Z")

</div>

Thanks for the quick reply. I checked the maven repo that was linked below:

[https://gatling.io/docs/gatling/reference/current/extensions/maven\_plugin/](https://gatling.io/docs/gatling/reference/current/extensions/maven_plugin/)

Seems like the latest is 3.1.2. I did update to that but I still run into the issue.

Thanks,  
Karthik

---

<div class="post-metadata">

**Author:** ![Karthik\_Nathan](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@Karthik\_Nathan](https://community.gatling.io/u/Karthik_Nathan)\
**Post date:** [July 19, 2021, 9:27pm UTC](https://community.gatling.io/t/jms-sendmessage-to-sqs/6186/4 "2021-07-19T21:27:18Z")

</div>

Thanks for getting back to me! I did take a look at the maven repo and it seems 3.1.2 is the latest over there.  
[https://gatling.io/docs/gatling/reference/current/extensions/maven\_plugin/](https://gatling.io/docs/gatling/reference/current/extensions/maven_plugin/)

I did upgrade to that but I still run into this issue.

Thanks,  
Karthik

---

<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 19, 2021, 9:30pm UTC](https://community.gatling.io/t/jms-sendmessage-to-sqs/6186/5 "2021-07-19T21:30:58Z")

</div>

Versions of the maven plugin and of Gatling itself are not related.

---

<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 19, 2021, 9:32pm UTC](https://community.gatling.io/t/jms-sendmessage-to-sqs/6186/6 "2021-07-19T21:32:07Z")

</div>

Then, it simply seems the SQS JMS adapter doesn’t support Map messages.

---

<div class="post-metadata">

**Author:** ![Karthik\_Nathan](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@Karthik\_Nathan](https://community.gatling.io/u/Karthik_Nathan)\
**Post date:** [July 19, 2021, 9:41pm UTC](https://community.gatling.io/t/jms-sendmessage-to-sqs/6186/7 "2021-07-19T21:41:42Z")

</div>

Thanks for getting back to me Stephane! I do see that on the documentation for jms on gatling, it does mention that mapMessage is supported.  
[https://gatling.io/docs/gatling/reference/current/jms/#message](https://gatling.io/docs/gatling/reference/current/jms/#message)

Also, in the what’s new section of 3.1, there is section that mentions added support for mapMessage.  
[https://gatling.io/docs/gatling/reference/current/whats\_new/3.1/](https://gatling.io/docs/gatling/reference/current/whats_new/3.1/)

So, just to clarify, does SQS JMS Adapter not support mapMessages then?

Thanks,  
Karthik

---

<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 20, 2021, 5:57am UTC](https://community.gatling.io/t/jms-sendmessage-to-sqs/6186/8 "2021-07-20T05:57:34Z")

</div>

[https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/supported-implementations.html](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/supported-implementations.html)

## Supported message types

- `ByteMessage`

- `ObjectMessage`

- `TextMessage`

=\> No MapMessage
