I have an application that runs on a Payara 4.1.2.173. The application should be sending and receiving JMS messages, so to do so, I use Apache ActiveMQ Artemis. I chose ActiveMQ Artemis because ActiveMQ only supports JMS 1.1, while ActiveMQ Artemis supports JMS 2.0.
But I find it odd that ActiveMQ Artemis does not provide a resource adapter (.rar file), while ActiveMQ does provide one. The good part is, the resource adapter for ActiveMQ is able to connect to ActiveMQ Artemis. The sad part is, it only supports JMS 1.1, so the benefits of Artemis (for me) are not available.
While using JMS 1.1, it's easy to create a Consumer (MDB style), but when I want to Produce messages, I would need to handle the setup of the connection by myself. I read the documentation, and it seems like JMS 2.0 should support injecting a JMSContext, which can be used to create a producer without the need of setting up the connection itself.
But the ActiveMQ RA does not support injecting a JMSContext, it only allows to inject JMSConnectionFactory.
Is there a way so I can inject a JMSContext, which is configured to connect to ActiveMQ Artemis?
I was already thinking of using the included jmsra
RA straight from Payara, but I can't figure out how to configure it.