[
https://issues.apache.org/jira/browse/ARTEMIS-1142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17014602#comment-17014602
]
Justin Bertram commented on ARTEMIS-1142:
-----------------------------------------
You can do this now using a
{{org.apache.activemq.artemis.core.server.ServiceRegistry}} passed into the
broker when you start it. [Here is an
example|https://github.com/apache/activemq-artemis/blob/2.10.1/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/divert/DivertTest.java#L1396]
from the test-suite.
> Possibility to give instance of a Transform in DivertConfiguration in
> addition of transformerClassName
> ------------------------------------------------------------------------------------------------------
>
> Key: ARTEMIS-1142
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1142
> Project: ActiveMQ Artemis
> Issue Type: New Feature
> Components: Broker
> Affects Versions: 2.0.0
> Reporter: Alexandre Navarro
> Priority: Major
>
> Possibility to give instance of a Transform in DivertConfiguration in
> addition of transformerClassName.
> I will give you a exemple.
> I'm in a spring-boot application with an artemis embedded.
> My configuration is done programmatically.
> I want to use a spring bean in my transformer but as it is instanciated by
> artemis engine, I can't easily retrieve a bean spring inside my transformer.
> If you are ok on the feature, I can check if I can do pullrequest.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)