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

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


The following commit(s) were added to refs/heads/main by this push:
     new 7917929  Fix the route of the example of the marshal/unmarshal EIP 
(#6769)
7917929 is described below

commit 791792942c8c9cdfa8eb6bfd3070f114a08a34d1
Author: Nicolas Filotto <essob...@users.noreply.github.com>
AuthorDate: Mon Jan 17 19:48:53 2022 +0100

    Fix the route of the example of the marshal/unmarshal EIP (#6769)
---
 .../src/main/docs/modules/eips/pages/marshal-eip.adoc          | 10 +++++-----
 .../src/main/docs/modules/eips/pages/unmarshal-eip.adoc        | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git 
a/core/camel-core-engine/src/main/docs/modules/eips/pages/marshal-eip.adoc 
b/core/camel-core-engine/src/main/docs/modules/eips/pages/marshal-eip.adoc
index ac71cab..ae425f5 100644
--- a/core/camel-core-engine/src/main/docs/modules/eips/pages/marshal-eip.adoc
+++ b/core/camel-core-engine/src/main/docs/modules/eips/pages/marshal-eip.adoc
@@ -23,14 +23,14 @@ Each file is then transformed into Java Objects using 
xref:dataformats:jaxb-data
 Then a xref:ROOT:bean-component.adoc[Bean] is invoked that takes in the Java 
object.
 
 Then the reverse operation happens to transform the Java objects back into XML 
also via JAXB,
-but using the `unmarshal` operation. And finally the message is routed to a 
xref:ROOT:jms-component.adoc[JMS] queue.
+but using the `marshal` operation. And finally the message is routed to a 
xref:ROOT:jms-component.adoc[JMS] queue.
 
 [source,java]
 ----
 from("file:inbox/xml")
-  .marshal().jaxb()
-  .to("bean:validateOrder")
   .unmarshal().jaxb()
+  .to("bean:validateOrder")
+  .marshal().jaxb()
   .to("jms:queue:order");
 ----
 
@@ -40,9 +40,9 @@ And in XML:
 ----
 <route>
   <from uri="file:inbox/xml"/>
-  <marshal><jaxb/></marshal>
-  <to uri="bean:validateOrder"/>
   <unmarshal><jaxb/></unmarshal>
+  <to uri="bean:validateOrder"/>
+  <marshal><jaxb/></marshal>
   <to uri="jms:queue:order"/>
 </route>
 ----
diff --git 
a/core/camel-core-engine/src/main/docs/modules/eips/pages/unmarshal-eip.adoc 
b/core/camel-core-engine/src/main/docs/modules/eips/pages/unmarshal-eip.adoc
index 044874c..26ab78f 100644
--- a/core/camel-core-engine/src/main/docs/modules/eips/pages/unmarshal-eip.adoc
+++ b/core/camel-core-engine/src/main/docs/modules/eips/pages/unmarshal-eip.adoc
@@ -23,14 +23,14 @@ Each file is then transformed into Java Objects using 
xref:dataformats:jaxb-data
 Then a xref:ROOT:bean-component.adoc[Bean] is invoked that takes in the Java 
object.
 
 Then the reverse operation happens to transform the Java objects back into XML 
also via JAXB,
-but using the `unmarshal` operation. And finally the message is routed to a 
xref:ROOT:jms-component.adoc[JMS] queue.
+but using the `marshal` operation. And finally the message is routed to a 
xref:ROOT:jms-component.adoc[JMS] queue.
 
 [source,java]
 ----
 from("file:inbox/xml")
-  .marshal().jaxb()
-  .to("bean:validateOrder")
   .unmarshal().jaxb()
+  .to("bean:validateOrder")
+  .marshal().jaxb()
   .to("jms:queue:order");
 ----
 
@@ -40,9 +40,9 @@ And in XML:
 ----
 <route>
   <from uri="file:inbox/xml"/>
-  <marshal><jaxb/></marshal>
-  <to uri="bean:validateOrder"/>
   <unmarshal><jaxb/></unmarshal>
+  <to uri="bean:validateOrder"/>
+  <marshal><jaxb/></marshal>
   <to uri="jms:queue:order"/>
 </route>
 ----

Reply via email to