JMS, SQS and a context factory

I have an SQS queue that I can connect to through the Amazon SQS Java Messaging Library
https://github.com/awslabs/amazon-sqs-java-messaging-lib

The library connects using an SQSConnectionFactory
http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/jmsclient.html#jmsclient-gsg

However, the Gatling JMS DSL requires a contextFactory.
https://github.com/gatling/gatling/blob/60bbc4c61a861cb701685eef987c50e43a446577/gatling-jms/src/main/scala/io/gatling/jms/protocol/JmsProtocolBuilder.scala#L51

And I wondered if it was possible to integrate both of these libraries?

Many Thanks

Aidy

Gatling JMS protocol currently only supports the JEE way: it fetches the ConnectionFactory from the JNDI context that gets created from the “InitialContextFactory” classname parameter.

The AWS Java client doesn’t seem to have that and ConnectionFactory can only be created programmatically.
I guess we could support a programmatic strategy too, but that’s not implemented atm.
Contribs/sponsoring welcome :slight_smile:

Hi Stéphane,

Thanks for your reply.

Would a valid alternative be to use the SQS HTTP interface and pass signed AWS credentials in a standard Gatling post?

Thanks

Aidy

No idea, sorry.

FYI, I’ve filled a feature request: https://github.com/gatling/gatling/issues/3103
Not in our roadmap atm, though.