You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2017/04/27 08:40:00 UTC

[2/3] camel git commit: CAMEL-5723 - update adoc

CAMEL-5723 - update adoc


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/39d960be
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/39d960be
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/39d960be

Branch: refs/heads/master
Commit: 39d960be54e2b0d1779388d7ca26b0a8ddb81ab4
Parents: 0351918
Author: onders86 <on...@gmail.com>
Authored: Thu Apr 27 09:16:56 2017 +0300
Committer: Claus Ibsen <da...@apache.org>
Committed: Thu Apr 27 10:36:29 2017 +0200

----------------------------------------------------------------------
 .../camel-jaxb/src/main/docs/jaxb-dataformat.adoc | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/39d960be/components/camel-jaxb/src/main/docs/jaxb-dataformat.adoc
----------------------------------------------------------------------
diff --git a/components/camel-jaxb/src/main/docs/jaxb-dataformat.adoc b/components/camel-jaxb/src/main/docs/jaxb-dataformat.adoc
index 861381d..84b8584 100644
--- a/components/camel-jaxb/src/main/docs/jaxb-dataformat.adoc
+++ b/components/camel-jaxb/src/main/docs/jaxb-dataformat.adoc
@@ -88,10 +88,24 @@ generated code does not have @XmlRootElement annotation, sometimes you
 need unmarshall only part of tree. +
  In that case you can use partial unmarshalling. To enable this
 behaviours you need set property `partClass`. Camel will pass this class
-to JAXB's unmarshaler.
+to JAXB's unmarshaler. If `JaxbConstants.JAXB_PART_CLASS` is set as
+one of headers, (even if partClass property is set on DataFormat), the property
+on DataFormat is surpassed and the one set in the headers is used.
 
 For marshalling you have to add `partNamespace` attribute with QName of
-destination namespace. Example of Spring DSL you can find above.
+destination namespace. Example of Spring DSL you can find above. 
+If `JaxbConstants.JAXB_PART_NAMESPACE` is set as
+one of headers, (even if partNamespace property is set on DataFormat), the property
+on DataFormat is surpassed and the one set in the headers is used. While setting 
+`partNamespace` through `JaxbConstants.JAXB_PART_NAMESPACE`, please 
+note that you need to specify its value {[namespaceUri]}[localPart]
+
+[source,java]
+--------------------------------------------------------------------------------------
+   ...
+   .setHeader(JaxbConstants.JAXB_PART_NAMESPACE, simple("{http://www.camel.apache.org/jaxb/example/address/1}address"));
+   ...
+--------------------------------------------------------------------------------------
 
 ### Fragment