You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2018/11/16 11:06:23 UTC

[camel] 03/04: CAMEL-12759 - Misleading documentation for Netty components - Netty

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

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

commit c0ff44454b823f2e8f69401ff8c3be3b5af389da
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Nov 16 12:01:23 2018 +0100

    CAMEL-12759 - Misleading documentation for Netty components - Netty
---
 .../camel-netty/src/main/docs/netty-component.adoc     | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/components/camel-netty/src/main/docs/netty-component.adoc b/components/camel-netty/src/main/docs/netty-component.adoc
index f4f6012..b0a56a9 100644
--- a/components/camel-netty/src/main/docs/netty-component.adoc
+++ b/components/camel-netty/src/main/docs/netty-component.adoc
@@ -40,7 +40,7 @@ The URI scheme for a netty component is as follows
 
 [source,java]
 ---------------------------------------
-netty:tcp://localhost:99999[?options]
+netty:tcp://0.0.0.0:99999[?options]
 netty:udp://remotehost:99999/[?options]
 ---------------------------------------
 
@@ -385,7 +385,7 @@ netty.
 ------------------------------------------------------------------
 RouteBuilder builder = new RouteBuilder() {
   public void configure() {
-    from("netty:udp://localhost:5155?sync=true")
+    from("netty:udp://0.0.0.0:5155?sync=true")
       .process(new Processor() {
          public void process(Exchange exchange) throws Exception {
            Poetry poetry = (Poetry) exchange.getIn().getBody();
@@ -403,7 +403,7 @@ RouteBuilder builder = new RouteBuilder() {
 -------------------------------------------
 RouteBuilder builder = new RouteBuilder() {
   public void configure() {
-       from("netty:tcp://localhost:5150")
+       from("netty:tcp://0.0.0.0:5150")
            .to("mock:result");
   }
 };
@@ -457,7 +457,7 @@ Spring DSL based configuration of endpoint
     </camel:keyManagers>
   </camel:sslContextParameters>...
 ...
-  <to uri="netty:tcp://localhost:5150?sync=true&ssl=true&sslContextParameters=#sslContextParameters"/>
+  <to uri="netty:tcp://0.0.0.0:5150?sync=true&ssl=true&sslContextParameters=#sslContextParameters"/>
 ...
 ------------------------------------------------------------------------------------------------------
 
@@ -475,7 +475,7 @@ context.createRegistry(registry);
 context.addRoutes(new RouteBuilder() {
   public void configure() {
       String netty_ssl_endpoint =
-         "netty:tcp://localhost:5150?sync=true&ssl=true&passphrase=#password"
+         "netty:tcp://0.0.0.0:5150?sync=true&ssl=true&passphrase=#password"
          + "&keyStoreFile=#ksf&trustStoreFile=#tsf";
       String return_string =
          "When You Go Home, Tell Them Of Us And Say,"
@@ -561,7 +561,7 @@ written the bye message back to the client:
 
 [source,java]
 --------------------------------------------------------------------------------------------------------
-        from("netty:tcp://localhost:8080").process(new Processor() {
+        from("netty:tcp://0.0.0.0:8080").process(new Processor() {
             public void process(Exchange exchange) throws Exception {
                 String body = exchange.getIn().getBody(String.class);
                 exchange.getOut().setBody("Bye " + body);
@@ -632,7 +632,7 @@ registry.bind("spf", serverPipelineFactory);
 context.addRoutes(new RouteBuilder() {
   public void configure() {
       String netty_ssl_endpoint =
-         "netty:tcp://localhost:5150?serverPipelineFactory=#spf"
+         "netty:tcp://0.0.0.0:5150?serverPipelineFactory=#spf"
       String return_string =
          "When You Go Home, Tell Them Of Us And Say,"
          + "For Your Tomorrow, We Gave Our Today.";
@@ -687,7 +687,7 @@ as shown below:
 [source,xml]
 -----------------------------------------------------------------------------------------------------------------------------------------
     <route>
-      <from uri="netty:tcp://localhost:5021?textline=true&amp;sync=true&amp;workerPool=#sharedPool&amp;orderedThreadPoolExecutor=false"/>
+      <from uri="netty:tcp://0.0.0.0:5021?textline=true&amp;sync=true&amp;workerPool=#sharedPool&amp;orderedThreadPoolExecutor=false"/>
       <to uri="log:result"/>
       ...
     </route>
@@ -698,7 +698,7 @@ And if we have another route we can refer to the shared worker pool:
 [source,xml]
 -----------------------------------------------------------------------------------------------------------------------------------------
     <route>
-      <from uri="netty:tcp://localhost:5022?textline=true&amp;sync=true&amp;workerPool=#sharedPool&amp;orderedThreadPoolExecutor=false"/>
+      <from uri="netty:tcp://0.0.0.0:5022?textline=true&amp;sync=true&amp;workerPool=#sharedPool&amp;orderedThreadPoolExecutor=false"/>
       <to uri="log:result"/>
       ...
     </route>