# Gatling and support for jakarta.jms.ConnectionFactory

**URL:** <https://community.gatling.io/t/gatling-and-support-for-jakarta-jms-connectionfactory/8105>\
**Category:** Gatling (Open-Source)\
**Created:** [July 11, 2023, 6:57am UTC](https://community.gatling.io/t/gatling-and-support-for-jakarta-jms-connectionfactory/8105 "2023-07-11T06:57:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![matzalew](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@matzalew](https://community.gatling.io/u/matzalew)\
**Post date:** [July 11, 2023, 6:57am UTC](https://community.gatling.io/t/gatling-and-support-for-jakarta-jms-connectionfactory/8105/1 "2023-07-11T06:57:16Z")

</div>

Hello.  
The question is:  
Does the Gatling JMS supports the ‘jakarta.jms.ConnectionFactory’ ?

I got something like it:

```auto
public JmsConfig() {
        ConnectionFactory connectionFactory =
                (ConnectionFactory) new org.apache.activemq.ActiveMQConnectionFactory(EnvironmentConfig.JMS_URL);

        jmsProtocol = jms
                .connectionFactory((javax.jms.ConnectionFactory) connectionFactory)
                .replyTimeout(20)
                .usePersistentDeliveryMode();
    }

```

And well, I cannot use it after I changed from javax to jakartas ConnectionFactory.

I can just cast the connectionFactory back to the (javax.jms.ConnectionFactory), but that’s not what I wanted to get.

Can anyone support me, please

---

<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 13, 2023, 5:47pm UTC](https://community.gatling.io/t/gatling-and-support-for-jakarta-jms-connectionfactory/8105/2 "2023-07-13T17:47:11Z")

</div>

Please open a feature request on GitHub and hope for more users (not from your organization) or customers to upvote for it.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/2X/b/b148e0742de35c6280726cabf3ecd3de2d320f63.png) [@system](https://community.gatling.io/u/system)\
**Post date:** [August 12, 2023, 5:47pm UTC](https://community.gatling.io/t/gatling-and-support-for-jakarta-jms-connectionfactory/8105/3 "2023-08-12T17:47:34Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
