Just to be sure, I downloaded and decompiled
org.apache.activemq:artemis-jakarta-client:2.18.0 and the
org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory *does*
return an instance of
org.apache.activemq.artemis.jms.client.ActiveMQConnection that implements
jakarta.jms.Connection.

Are you sure all your classloading is working correctly and that you don't
have any other ActiveMQ Artemis jars on the classpath?

I recently added an example [1] to the code-base that uses the Jakarta
Messaging 3.0 API, and it works fine. I would expect your use-case to work
as well.


Justin

[1]
https://github.com/apache/activemq-artemis/tree/main/examples/features/standard/queue-jakarta

On Wed, Sep 29, 2021 at 8:12 AM Jack Shirazi
<jack.shir...@elastic.co.invalid> wrote:

> Yes, artemis-jakarta-client version 2.18.0
>
> On Wed, Sep 29, 2021 at 1:11 PM Domenico Francesco Bruscino <
> bruscin...@gmail.com> wrote:
>
> > Hi Jack,
> >
> > are you using `artemis-jakarta-client` [1]?
> >
> > [1]
> >
> >
> https://mvnrepository.com/artifact/org.apache.activemq/artemis-jakarta-client
> >
> > Regards,
> > Domenico
> >
> > On Wed, 29 Sept 2021 at 13:36, Jack Shirazi <jack.shir...@elastic.co
> > .invalid>
> > wrote:
> >
> > > Hi,
> > > I'm trying to have a fully EE9 (so only using jakarta.jms* imports)
> > > implementation. jakarta.jms.ConnectionFactory  is not compatible
> > > with ActiveMQConnectionFactory as that returns a
> > > javax.jms.ConnectionFactory. I couldn't see an alternative connection
> > > factory that provides a jakarta.jms.ConnectionFactory in the Artemis
> > > implementation.
> > >
> >
>

Reply via email to