Added Guaranteed Delivery docs to Gitbook
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/808248e1 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/808248e1 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/808248e1 Branch: refs/heads/master Commit: 808248e1477b7d1cd82440bb06bc448f6b275a78 Parents: 1489eb8 Author: Andrea Cosentino <anco...@gmail.com> Authored: Wed Oct 26 13:32:55 2016 +0200 Committer: Andrea Cosentino <anco...@gmail.com> Committed: Wed Oct 26 13:32:55 2016 +0200 ---------------------------------------------------------------------- .../src/main/docs/guaranteed-delivery.adoc | 64 ++++++++++++++++++++ docs/user-manual/en/SUMMARY.md | 1 + 2 files changed, 65 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/808248e1/camel-core/src/main/docs/guaranteed-delivery.adoc ---------------------------------------------------------------------- diff --git a/camel-core/src/main/docs/guaranteed-delivery.adoc b/camel-core/src/main/docs/guaranteed-delivery.adoc new file mode 100644 index 0000000..7620c9b --- /dev/null +++ b/camel-core/src/main/docs/guaranteed-delivery.adoc @@ -0,0 +1,64 @@ +[[GuaranteedDelivery-GuaranteedDelivery]] +Guaranteed Delivery +^^^^^^^^^^^^^^^^^^^ + +Camel supports the +http://www.enterpriseintegrationpatterns.com/GuaranteedMessaging.html[Guaranteed +Delivery] from the link:enterprise-integration-patterns.html[EIP +patterns] using among others the following components: + +* link:file2.html[File] for using file systems as a persistent store of +messages +* link:jms.html[JMS] when using persistent delivery (the default) for +working with JMS Queues and Topics for high performance, clustering and +load balancing +* link:jpa.html[JPA] for using a database as a persistence layer, or use +any of the many other database component such as link:sql.html[SQL], +link:jdbc.html[JDBC], +link:ibatis.html[iBATIS]/link:mybatis.html[MyBatis], +link:hibernate.html[Hibernate] +* link:hawtdb.html[HawtDB] for a lightweight key-value persistent store + +image:http://www.enterpriseintegrationpatterns.com/img/GuaranteedMessagingSolution.gif[image] + +[[GuaranteedDelivery-Example]] +Example ++++++++ + +The following example demonstrates illustrates the use +of http://www.enterpriseintegrationpatterns.com/GuaranteedMessaging.html[Guaranteed +Delivery] within the link:jms.html[JMS] component. By default, a message +is not considered successfully delivered until the recipient has +persisted the message locally guaranteeing its receipt in the event the +destination becomes unavailable. + +*Using the link:fluent-builders.html[Fluent Builders]* + +[source,java] +------------------------- +from("direct:start") + .to("jms:queue:foo"); +------------------------- + + + +**Using the link:spring-xml-extensions.html[Spring XML Extensions]** + +[source,xml] +------------------------------ +<route> + <from uri="direct:start"/> + <to uri="jms:queue:foo"/> +</route> +------------------------------ + +[[GuaranteedDelivery-UsingThisPattern]] +Using This Pattern +++++++++++++++++++ + +If you would like to use this EIP Pattern then please read the +link:getting-started.html[Getting Started], you may also find the +link:architecture.html[Architecture] useful particularly the description +of link:endpoint.html[Endpoint] and link:uris.html[URIs]. Then you could +try out some of the link:examples.html[Examples] first before trying +this pattern out. http://git-wip-us.apache.org/repos/asf/camel/blob/808248e1/docs/user-manual/en/SUMMARY.md ---------------------------------------------------------------------- diff --git a/docs/user-manual/en/SUMMARY.md b/docs/user-manual/en/SUMMARY.md index a7d5631..126dc0e 100644 --- a/docs/user-manual/en/SUMMARY.md +++ b/docs/user-manual/en/SUMMARY.md @@ -85,6 +85,7 @@ * [Point to Point Channel](point-to-point-channel.adoc) * [Publish Subscribe Channel](publish-subscribe-channel.adoc) * [Dead Letter Channel](dead-letter-channel.adoc) + * [Guaranteed Delivery](guaranteed-delivery.adoc) * Message Construction * [Correlation Identifier](correlation-identifier.adoc) * [Event Message](event-message.adoc)