JMS, SQS and a context factory

513 views
Skip to first unread message

adrian...@hushmail.com

unread,
Aug 9, 2016, 7:29:35 AM8/9/16
to Gatling User Group
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

Stéphane LANDELLE

unread,
Aug 9, 2016, 9:20:24 AM8/9/16
to gat...@googlegroups.com
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 :)

Stéphane Landelle
GatlingCorp CEO



--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

adrian...@hushmail.com

unread,
Aug 9, 2016, 10:06:12 AM8/9/16
to gat...@googlegroups.com
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

On 8/9/2016 at 2:20 PM, "Stéphane LANDELLE" <slan...@gatling.io> wrote:
>
>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 :)
>
>*Stéphane Landelle*
>*GatlingCorp CEO*
>slan...@gatling.io
>
>
>On Tue, Aug 9, 2016 at 1:29 PM, <adrian...@hushmail.com> wrote:
>
>> 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/SQSD
>> eveloperGuide/jmsclient.html#jmsclient-gsg
>>
>> However, the Gatling JMS DSL requires a contextFactory.
>> https://github.com/gatling/gatling/blob/60bbc4c61a861cb70168
>> 5eef987c50e43a446577/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
>>
>> --
>> You received this message because you are subscribed to the
>Google Groups
>> "Gatling User Group" group.
>> To unsubscribe from this group and stop receiving emails from
>it, send an
>> email to gatling+u...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>--
>You received this message because you are subscribed to the Google
>Groups "Gatling User Group" group.
>To unsubscribe from this group and stop receiving emails from it,
>send an email to gatling+u...@googlegroups.com.

Stéphane LANDELLE

unread,
Aug 9, 2016, 10:11:37 AM8/9/16
to gat...@googlegroups.com
No idea, sorry.

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

Stéphane Landelle
GatlingCorp CEO



>> For more options, visit https://groups.google.com/d/optout.
>>
>
>--
>You received this message because you are subscribed to the Google
>Groups "Gatling User Group" group.
>To unsubscribe from this group and stop receiving emails from it,

>For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages