This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 00df9cbba7d89ac2f493ca64b5cb4e6706f71e4b Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Mon Jun 17 09:46:18 2019 +0200 CAMEL-13647: Allow to do autowrire by classpath. Quick and dirty prototype. --- .../src/main/java/org/apache/camel/component/jms/JmsComponent.java | 7 +++++++ .../camel-example-main/src/main/resources/application.properties | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsComponent.java b/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsComponent.java index 443bf4c..d767111 100644 --- a/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsComponent.java +++ b/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsComponent.java @@ -349,6 +349,13 @@ public class JmsComponent extends HeaderFilterStrategyComponent implements Appli } /** + * Gets the connection factory to be used. + */ + public ConnectionFactory getConnectionFactory() { + return getConfiguration().getConnectionFactory(); + } + + /** * The connection factory to be use. A connection factory must be configured either on the component or endpoint. */ @Metadata(description = "The connection factory to be use. A connection factory must be configured either on the component or endpoint.") diff --git a/examples/camel-example-main/src/main/resources/application.properties b/examples/camel-example-main/src/main/resources/application.properties index b0c1717..ac6de98 100644 --- a/examples/camel-example-main/src/main/resources/application.properties +++ b/examples/camel-example-main/src/main/resources/application.properties @@ -43,7 +43,7 @@ camel.component.quartz2.start-delayed-seconds = 3 ### camel.component.properties.environment-variable-mode=1 # setup JMS component with connection to ActiveMQ Artemis broker -camel.component.jms.configuration.connectionFactory.brokerURL=tcp://localhost:61616 +camel.component.jms.connectionFactory.brokerURL=tcp://localhost:61616 # properties used in the route myCron = 0/2 * * * * ?