[
https://issues.apache.org/jira/browse/ARTEMIS-4716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Martin updated ARTEMIS-4716:
-----------------------------------
Description:
I'm struggling to understand the instructions to use Artemis in the context of
Jakarta Messaging found at
[https://activemq.apache.org/components/artemis/documentation/latest/using-jms.html],
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 being
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?
was:
I'm struggling to understand the instructions to use Artemis in the context of
Jakarta Messaging found at
[https://activemq.apache.org/components/artemis/documentation/latest/using-jms.html],
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 being 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?
> 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 the instructions to use Artemis in the context
> of Jakarta Messaging found at
> [https://activemq.apache.org/components/artemis/documentation/latest/using-jms.html],
> 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
> being 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)