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 2020/03/06 17:37:58 UTC

[camel] branch master updated (10b348f -> ee6236e)

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git.


    from 10b348f  CAMEL-14664 - Camel-AWS2-S3: add more integration tests, deleteBucket
     new fad8c23  CAMEL-14668: camel-core - Optimize getEndpoint on camel context
     new ee6236e  CAMEL-14668: camel-core - Optimize getEndpoint on camel context

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../org/apache/camel/component/etcd/EtcdKeysTest.java | 12 ++++++------
 .../modules/ROOT/pages/camel-3x-upgrade-guide.adoc    | 19 +++++++++++++++++++
 2 files changed, 25 insertions(+), 6 deletions(-)


[camel] 01/02: CAMEL-14668: camel-core - Optimize getEndpoint on camel context

Posted by da...@apache.org.
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 fad8c23e9248e17385a488c79ea62466d9bd96d7
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Mar 6 18:34:25 2020 +0100

    CAMEL-14668: camel-core - Optimize getEndpoint on camel context
---
 .../modules/ROOT/pages/camel-3x-upgrade-guide.adoc    | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide.adoc b/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide.adoc
index 1b867c5..7526800 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide.adoc
@@ -627,8 +627,27 @@ The google-pubnub component has been improved to use a new Java library and beco
 
 Support for Apache Karaf has been removed.
 
+=== Endpoint URIs without context path
+
+Previously Camel components may work by referring to their name only without a colon and context path (eg `log`)
+that for a few components would allow them to create an endpoint anyway.
+
+Now this is not allowed and Camel will throw an `NoSuchEndpointException`.
+
+An endpoint by its logical id can still be referred by the id only, eg
+[source,java]
+----
+Endpoint endpoint = camelContext.getEndpoint("myCoolEndpoint");
+----
+
 === API changes
 
 ==== DefaultComponent
 
 The deprecated method `preProcessUri` has been removed.
+
+==== CamelContext
+
+The method `getEndpoint` now throws `NoSuchEndpointException` directly instead of being wrapped
+within an `FailedToResolveEndpoint`.
+


[camel] 02/02: CAMEL-14668: camel-core - Optimize getEndpoint on camel context

Posted by da...@apache.org.
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 ee6236e9b0d616ec5ad7944fdacc43bf388a6cc1
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Mar 6 18:35:48 2020 +0100

    CAMEL-14668: camel-core - Optimize getEndpoint on camel context
---
 .../java/org/apache/camel/component/etcd/EtcdKeysTest.java   | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/components/camel-etcd/src/test/java/org/apache/camel/component/etcd/EtcdKeysTest.java b/components/camel-etcd/src/test/java/org/apache/camel/component/etcd/EtcdKeysTest.java
index 7c7a310..c36c254 100644
--- a/components/camel-etcd/src/test/java/org/apache/camel/component/etcd/EtcdKeysTest.java
+++ b/components/camel-etcd/src/test/java/org/apache/camel/component/etcd/EtcdKeysTest.java
@@ -116,14 +116,14 @@ public class EtcdKeysTest extends EtcdTestSupport {
         return new RouteBuilder() {
             public void configure() {
                 from("direct:keys-set")
-                    .to("etcd-keys")
-                        .to("mock:result-set");
+                    .to("etcd-keys:dummy")
+                    .to("mock:result-set");
                 from("direct:keys-get")
-                    .to("etcd-keys")
-                        .to("mock:result-get");
+                    .to("etcd-keys:dummy")
+                    .to("mock:result-get");
                 from("direct:keys-del")
-                    .to("etcd-keys")
-                        .to("mock:result-del");
+                    .to("etcd-keys:dummy")
+                    .to("mock:result-del");
             }
         };
     }