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 8bf0697  Fixed toD doc was wrong for cache size example
8bf0697 is described below

commit 8bf06971dc3eba9d62b1e4cb62b4301632207bd0
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Apr 21 21:14:44 2020 +0200

    Fixed toD doc was wrong for cache size example
---
 core/camel-core-engine/src/main/docs/modules/eips/pages/toD-eip.adoc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/core/camel-core-engine/src/main/docs/modules/eips/pages/toD-eip.adoc 
b/core/camel-core-engine/src/main/docs/modules/eips/pages/toD-eip.adoc
index ba2c6cd..31354ce 100644
--- a/core/camel-core-engine/src/main/docs/modules/eips/pages/toD-eip.adoc
+++ b/core/camel-core-engine/src/main/docs/modules/eips/pages/toD-eip.adoc
@@ -138,12 +138,12 @@ for each different userid. To avoid having too many 
dynamic endpoints you can co
 [source,java]
 ----
 from("direct:login")
-  .toD("http:myloginserver:8080/login?cacheSize=10&userid=${header.userName}");
+  .toD("http:myloginserver:8080/login?userid=${header.userName}", 10);
 ----
 
 where the cache is 10. *Important* this will only reduce the endpoint cache of 
the `toD` that has a chance
 of being reused in case a message is routed with the same `userName` header. 
Therefore reducing the cache size
-will not solve the _endless dynamic endoints_ problem. Instead you should use 
static endpoints with `to` and
+will not solve the _endless dynamic endpoints_ problem. Instead you should use 
static endpoints with `to` and
 provide the dynamic parts in Camel message headers (if possible).
 
 === Using static endpoints

Reply via email to