Skip to content

Commit fdca0a4

Browse files
authored
Rework camel.adoc to reflect reality (#10375)
* It is better to have links to external docs independent of the version * Rework and change the section of the `camel.adoc` talking about Camel component for Spring Integration. This component was removed from Apache Camel since `4.0`
1 parent 1da83bd commit fdca0a4

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/reference/antora/modules/ROOT/pages/camel.adoc

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,17 @@ Spring Integration fully relies on a dependency injection container from Spring
3131
It uses many other Spring projects (Spring Data, Spring AMQP, Spring for Apache Kafka etc.) for its channel adapter implementations.
3232
It also uses the `MessageChannel` abstraction as a first-class citizen of which developers need to be aware of, when composing their integration flows.
3333
Apache Camel, on the other hand, does not provide a first-class citizen abstraction of a message channel and proposes to compose its routes via internal exchanges, hidden from the API.
34-
In addition, it requires some extra https://camel.apache.org/components/4.10.x/spring-summary.html[dependencies and configurations] for it to be used in a Spring application.
34+
In addition, it requires some extra https://camel.apache.org/manual/spring.html[dependencies and configurations] for it to be used in a Spring application.
3535

3636
Even if it doesn't matter for the final enterprise integration solution, how its parts are implemented, a developer experience and high productivity are taken into account.
3737
Therefore, developers may choose one framework over another for many reasons or both if there is a gap in some target systems support.
3838
Spring Integration and Apache Camel applications can interact with each other through many external protocols for which they implement channel adapters.
3939
For example, a Spring Integration flow may publish a record to an Apache Kafka topic which is consumed by an Apache Camel endpoint on the consumer side.
40-
Or, an Apache Camel route may write data into an SFTP file the directory, which is polled by a SFTP Inbound Channel Adapter from Spring Integration.
41-
Or, within the same Spring application context they can communicate via an `ApplicationEvent` https://camel.apache.org/components/3.18.x/spring-event-component.html[abstraction].
40+
Or, an Apache Camel route may write data into an SFTP file into the directory, which is polled by a SFTP Inbound Channel Adapter from Spring Integration.
41+
Or, within the same Spring application context they can communicate via an `ApplicationEvent`.
4242

43-
To make the development process easier and to avoid unnecessary network hops, Apache Camel provides a https://camel.apache.org/components/3.18.x/spring-integration-component.html[module] to communicate with Spring Integration via message channels.
44-
All that is needed is a reference to a `MessageChannel` from the application context, to send or consume messages.
45-
This works well when Apache Camel routes are initiators of the message flow and Spring Integration plays only a supporting role as a part of the solution.
46-
47-
For a similar developer experience, Spring Integration now provides a channel adapter to call an Apache Camel endpoint and, optionally, wait for a reply.
48-
There is no inbound channel adapter because subscribing to a `MessageChannel` for consuming Apache Camel messages is enough from the Spring Integration API and abstractions perspective.
43+
To make the development process easier and to avoid unnecessary network hops, Spring Integration now provides a channel adapter to call an Apache Camel endpoint and, optionally, wait for a reply.
44+
There is no inbound channel adapter because using the Apache Camel https://camel.apache.org/manual/bean-binding.html[Bean Binding] is enough to call any bean in the Spring application context, including xref:gateway.adoc[].
4945

5046
[[camel-channel-adapter]]
5147
== Outbound Channel Adapter for Apache Camel

0 commit comments

Comments
 (0)