[
https://issues.apache.org/jira/browse/ARTEMIS-4716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17837616#comment-17837616
]
Daniel Martin commented on ARTEMIS-4716:
----------------------------------------
OK, let me take a step back. I work routinely with Jakarta EE and am familiar
with the basics. I find it isn't a common operation, however, to want to
incorporate a third party tool in a way that integrates with the Jakarta EE
ecosystem. Luckily, Apache ActiveMQ Artemis has such integration, through the
"artemis-jakarta-client" package. I've been using this package for a while,
only I've been manually instantiating some objects, and now I would like to
take advantage of Artemis' integration with Jakarta and use dependency
injection via CDI instead, as that seems more robust, and guessing that this is
the recommended usage.
What I would love to see, then, is an example of "artemis-jakarta-client" being
used in whichever way was intended by the authors, in a working Jakarta EE
project, for whichever Jakarta EE implementation. Has this ever been done? Has
"artemis-jakarta-client" ever been used in a Jakarta EE project, either an
example or a real-world one?
> Improve Jakarta Messaging / JMS documentation
> ---------------------------------------------
>
> Key: ARTEMIS-4716
> URL: https://issues.apache.org/jira/browse/ARTEMIS-4716
> Project: ActiveMQ Artemis
> Issue Type: Improvement
> Components: JMS
> Affects Versions: 2.33.0
> Reporter: Daniel Martin
> Priority: Minor
>
> I'm struggling to understand [these
> instructions|https://activemq.apache.org/components/artemis/documentation/latest/using-jms.html]
> to use Artemis in the context of Jakarta Messaging which perhaps could be
> updated / simplified / improved.
> At the moment, I'm depending on {{artemis-jakarta-client}} and manually
> instantiating {{ActiveMQConnectionFactory}}. While investigating a memory
> leak that may come from my usage of ActiveMQ, I wanted to simplify this part
> and rely on dependency injection instead. However, I don't begin to
> understand how to do such thing.
> My expectation was to be able to use the {{@Inject}} annotation to get a
> reference to a {{ConnectionFactory}}, {{JMSContext}}, or similar and to be
> able to provide configuration such as broker address and credentials
> _somewhere_ as to end up with a reference to a {{Connection}} which is
> ultimately what I need. Is this possible? What's the recommended way? Is
> there any (working) reference examples?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)