Modified: websites/production/camel/content/splitter.html
==============================================================================
--- websites/production/camel/content/splitter.html (original)
+++ websites/production/camel/content/splitter.html Thu May 25 10:24:37 2017
@@ -297,7 +297,7 @@ public class MySplitterBean {
      * @param body the payload of the incoming message
      * @return a list containing each part splitted
      */
-    public List<Message> splitMessage(@Header(value = "user") 
String header, @Body String body) {
+    public List<Message> splitMessage(@Header(value = "user") 
String header, @Body String body, CamelContext camelContext) {
         // we can leverage the Parameter Binding Annotations  
         // http://camel.apache.org/parameter-binding-annotations.html
         // to access the message header and body at same time, 
@@ -307,7 +307,7 @@ public class MySplitterBean {
         List<Message> answer = new ArrayList<Message>();
         String[] parts = header.split(",");
         for (String part : parts) {
-            DefaultMessage message = new DefaultMessage();
+            DefaultMessage message = new DefaultMessage(camelContext);
             message.setHeader("user", part);
             message.setBody(body);
             answer.add(message);

Modified: websites/production/camel/content/xml-reference.html
==============================================================================
--- websites/production/camel/content/xml-reference.html (original)
+++ websites/production/camel/content/xml-reference.html Thu May 25 10:24:37 
2017
@@ -84,7 +84,7 @@
        <tbody>
         <tr>
         <td valign="top" width="100%">

[... 6 lines stripped ...]

Reply via email to