You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by heinrichheine <ma...@vitaphone.de> on 2011/07/18 15:14:54 UTC

Sending MapMessage via CamelContext?

Hi there,

i was wondering how to create a MapMessage with the Camel XML route notation
(no Spring).
I've read in the Camel docs that Map objects in the body will be converted
to MapMessage.
But how do i specify the key values in the xml?

<camel:setBody>
   ?????
</camel:setBody>

thanks in advance

 martin

--
View this message in context: http://camel.465427.n5.nabble.com/Sending-MapMessage-via-CamelContext-tp4599455p4599455.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Sending MapMessage via CamelContext?

Posted by Claus Ibsen <cl...@gmail.com>.
On Mon, Jul 18, 2011 at 3:14 PM, heinrichheine
<ma...@vitaphone.de> wrote:
> Hi there,
>
> i was wondering how to create a MapMessage with the Camel XML route notation
> (no Spring).
> I've read in the Camel docs that Map objects in the body will be converted
> to MapMessage.
> But how do i specify the key values in the xml?
>
> <camel:setBody>
>   ?????
> </camel:setBody>
>

XML is not a programming language. So its of course more difficult.

You can use some of the scripting languages and have that in the XML.
http://camel.apache.org/languages



> thanks in advance
>
>  martin
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Sending-MapMessage-via-CamelContext-tp4599455p4599455.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/