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 2019/02/19 10:00:53 UTC

[camel] branch master updated: Update migration guide

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 2ebe703  Update migration guide
2ebe703 is described below

commit 2ebe703e81844930b24d3ebb3aa4714fcab4e345
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Feb 19 09:41:49 2019 +0100

    Update migration guide
---
 MIGRATION.md | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/MIGRATION.md b/MIGRATION.md
index 20bcd54..beb655a 100644
--- a/MIGRATION.md
+++ b/MIGRATION.md
@@ -58,6 +58,25 @@ We have also renamed `camel-jetty9` to `camel-jetty`.
 
 If you run Camel standalone with just `camel-core` as dependency, and you want JMX enabled out of the box, then you need to add `camel-management-impl` as dependency.
 
+For using `ManagedCamelContext` you now need to get this an extension from `CamelContext` as follows:
+
+    ManagedCamelContext managed = camelContext.getExtension(ManagedCamelContext.class);
+
+### Configuring global options on CamelContext
+
+In Camel 2.x we have deprecated `getProperties` on `CamelContext` in favour of `etGlobalOptions`, so you should migrate to:
+
+    context.getGlobalOptions().put("CamelJacksonEnableTypeConverter", "true");
+    context.getGlobalOptions().put("CamelJacksonTypeConverterToPojo", "true");
+
+... and in XML:
+
+    <globalOptions>
+      <globalOption key="CamelJacksonEnableTypeConverter" value="true"/>
+      <globalOption key="CamelJacksonTypeConverterToPojo" value="true"/>
+    </globalOptions>
+
+
 ### Moved APIs
 
 The following API changes may affect your existing Camel applications, which needs to be migrated.