You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2019/06/18 03:43:26 UTC

[camel] branch master updated: CAMEL-13647: Allow to do autowrire by classpath. Fixed camel-jms about lazy creating ConnectionFactory.

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


The following commit(s) were added to refs/heads/master by this push:
     new 62e7eb0  CAMEL-13647: Allow to do autowrire by classpath. Fixed camel-jms about lazy creating ConnectionFactory.
62e7eb0 is described below

commit 62e7eb06d62b50ba6a03c25070c6ee1164c0962f
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Jun 18 05:43:11 2019 +0200

    CAMEL-13647: Allow to do autowrire by classpath. Fixed camel-jms about lazy creating ConnectionFactory.
---
 .../main/java/org/apache/camel/component/jms/JmsConfiguration.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConfiguration.java b/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConfiguration.java
index d394b9f..69863ae 100644
--- a/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConfiguration.java
+++ b/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConfiguration.java
@@ -1608,7 +1608,7 @@ public class JmsConfiguration implements Cloneable {
      * creation
      */
     protected ConnectionFactory createListenerConnectionFactory() {
-        return getConnectionFactory();
+        return getOrCreateConnectionFactory();
     }
 
     /**
@@ -1616,7 +1616,7 @@ public class JmsConfiguration implements Cloneable {
      * creation
      */
     protected ConnectionFactory createTemplateConnectionFactory() {
-        return getConnectionFactory();
+        return getOrCreateConnectionFactory();
     }
 
     /**