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 2016/06/30 09:40:43 UTC

[2/3] camel git commit: Added camel-jackson docs to Gitbook

Added camel-jackson 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/98766d19
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/98766d19
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/98766d19

Branch: refs/heads/master
Commit: 98766d190795793c87bd4e82d27e0db9bb290f39
Parents: 04ba80a
Author: Andrea Cosentino <an...@gmail.com>
Authored: Thu Jun 30 11:39:40 2016 +0200
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Thu Jun 30 11:39:40 2016 +0200

----------------------------------------------------------------------
 .../camel-jackson/src/main/docs/jackson.adoc    | 36 ++++++++++++++++++++
 docs/user-manual/en/SUMMARY.md                  |  1 +
 2 files changed, 37 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/98766d19/components/camel-jackson/src/main/docs/jackson.adoc
----------------------------------------------------------------------
diff --git a/components/camel-jackson/src/main/docs/jackson.adoc b/components/camel-jackson/src/main/docs/jackson.adoc
new file mode 100644
index 0000000..273623f
--- /dev/null
+++ b/components/camel-jackson/src/main/docs/jackson.adoc
@@ -0,0 +1,36 @@
+[[Jackson-Jackson]]
+Jackson
+~~~~~~~
+
+*Available as of Camel 2.18*
+
+Jackson is a link:data-format.html[Data Format] which uses the
+https://github.com/FasterXML/jackson-core[Jackson Library]
+
+[source,java]
+-------------------------------
+from("activemq:My.Queue").
+  marshal().json(JsonLibrary.Jackson).
+  to("mqseries:Another.Queue");
+-------------------------------
+
+[[Jackson-Dependencies]]
+Dependencies
+^^^^^^^^^^^^
+
+To use Jackson in your camel routes you need to add the dependency
+on *camel-jackson* which implements this data format.
+
+If you use maven you could just add the following to your pom.xml,
+substituting the version number for the latest & greatest release (see
+link:download.html[the download page for the latest versions]).
+
+[source,xml]
+----------------------------------------------------------
+<dependency>
+  <groupId>org.apache.camel</groupId>
+  <artifactId>camel-jackson</artifactId>
+  <version>x.x.x</version>
+  <!-- use the same version as your Camel core version -->
+</dependency>
+----------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/camel/blob/98766d19/docs/user-manual/en/SUMMARY.md
----------------------------------------------------------------------
diff --git a/docs/user-manual/en/SUMMARY.md b/docs/user-manual/en/SUMMARY.md
index 5b34ecd..d4a3366 100644
--- a/docs/user-manual/en/SUMMARY.md
+++ b/docs/user-manual/en/SUMMARY.md
@@ -188,6 +188,7 @@
     * [Infinispan](infinispan.adoc)
     * [IRC](irc.adoc)
     * [Ironmq](ironmq.adoc)
+    * [Jackson](jackson.adoc)
     * [Jasypt](jasypt.adoc)
     * [Javaspace](javaspace.adoc)
     * [JMS](jms.adoc)