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

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

commit b17950eac1ecaab556fb2310d1bf7118a2322402
Author: Otavio Rodolfo Piske <angusyo...@gmail.com>
AuthorDate: Mon Feb 19 12:47:38 2024 +0100

    CAMEL-20410: documentation fixes for camel-direct
    
    - Fixed samples
    - Fixed grammar and typos
    - Fixed punctuation
    - Added and/or fixed links
---
 .../src/main/docs/direct-component.adoc            | 24 +++++++++++++---------
 1 file changed, 14 insertions(+), 10 deletions(-)

diff --git a/components/camel-direct/src/main/docs/direct-component.adoc 
b/components/camel-direct/src/main/docs/direct-component.adoc
index 48ff1bff66c..a922401a77a 100644
--- a/components/camel-direct/src/main/docs/direct-component.adoc
+++ b/components/camel-direct/src/main/docs/direct-component.adoc
@@ -16,8 +16,8 @@
 *{component-header}*
 
 The Direct component provides direct, synchronous invocation of any
-consumers when a producer sends a message exchange. +
- This endpoint can be used to connect existing routes in the *same*
+consumers when a producer sends a message exchange.
+This endpoint can be used to connect existing routes in the *same*
 camel context.
 
 [TIP]
@@ -32,10 +32,10 @@ any consumers when a producer sends a message exchange.
 
 [source]
 ----
-direct:someName[?options]
+direct:someId[?options]
 ----
 
-Where *someName* can be any string to uniquely identify the endpoint
+Where _someId_ can be any string to uniquely identify the endpoint.
 
 
 // component-configure options: START
@@ -54,9 +54,12 @@ include::partial$component-endpoint-options.adoc[]
 
 == Samples
 
-In the route below we use the direct component to link the two routes
-together:
+In the route below, we use the direct component to link the two routes 
together:
 
+[tabs]
+====
+Java::
++
 [source,java]
 ----
 from("activemq:queue:order.in")
@@ -68,8 +71,8 @@ from("direct:processOrder")
     .to("activemq:queue:order.out");
 ----
 
-And the sample using spring DSL:
-
+Spring XML::
++
 [source,xml]
 ----
 <route>
@@ -85,8 +88,9 @@ And the sample using spring DSL:
 </route>
 ----
 
-See also samples from the xref:seda-component.adoc[SEDA] component, how they 
can
-be used together.
+====
+
+See also samples from the xref:seda-component.adoc[SEDA] component, how they 
can be used together.
 
 
 

Reply via email to