From 937ac9647a4dfbd7149a7fd694b1d9b0fbfe6746 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Sat, 7 Sep 2013 14:26:23 +0300 Subject: [PATCH] INT-3092, INT-3042: Doc: Jacksons, Resequencer JIRA: https://jira.springsource.org/browse/INT-3042 https://jira.springsource.org/browse/INT-3092 --- src/reference/docbook/resequencer.xml | 25 ------------------------- src/reference/docbook/transformer.xml | 22 +++++++++++++++++++++- 2 files changed, 21 insertions(+), 26 deletions(-) diff --git a/src/reference/docbook/resequencer.xml b/src/reference/docbook/resequencer.xml index 0c02fa46dd..9c2aa2adb4 100644 --- a/src/reference/docbook/resequencer.xml +++ b/src/reference/docbook/resequencer.xml @@ -49,7 +49,6 @@ correlation-strategy="correlationStrategyBean" ]]> - - Whether to send out ordered sequences as soon as they are available, or only after the whole message group arrives. Optional (false by default). - - If this flag is not specified (so a complete sequence is defined by the sequence headers) then it may make sense to provide a custom - - Comparator - - to be used to order the messages when sending (use the XML attribute - - comparator - - to point to a bean definition). If - - release-partial-sequences - - is true then there is no way with a custom comparator to define a partial sequence. To do that you would have to provide a - - release-strategy - - (also a reference to another bean definition, either a POJO or a - - ReleaseStrategy - - ). diff --git a/src/reference/docbook/transformer.xml b/src/reference/docbook/transformer.xml index de076a877a..a5fccb0edf 100644 --- a/src/reference/docbook/transformer.xml +++ b/src/reference/docbook/transformer.xml @@ -229,7 +229,9 @@ public class Kid { Beginning with version 3.0, the object-mapper attribute references an instance of a new strategy interface JsonObjectMapper. This abstraction allows multiple - implementations of json mappers to be used. Implementations that wrap Jackson 1.x and Jackson 2 are + implementations of json mappers to be used. Implementations that wrap + Jackson 1.x and + Jackson 2 are provided, with the version being detected on the classpath. These classes are JacksonJsonObjectMapper and Jackson2JsonObjectMapper. @@ -238,6 +240,24 @@ public class Kid { instead of a JsonObjectMapper. This will be removed in a future release. + + + If there are requirements to use both Jackson libraries in the same application, keep in mind that + before version 3.0, the JSON transformers used only Jackson 1.x and, from 3.0 on, the framework will + select Jackson 2 by default, if both are on the classpath. + So, to avoid unexpected issues with Jackson's mapping features, when using annotations, there may be + a need to apply annotations from both Jacksons on domain classes: + + + You may wish to consider using a FactoryBean or simple factory method to create the JsonObjectMapper with