Hello
I have the exchange body as a hashmap
The hashmap has several pairs, of which one needs to be
unmarshalled.
How can I pass that particular value (which is XML String) to the unmarshal In
the following route
from(INB_Q_URI)
.routeId(ROUTE_ID_INB_RID)
.log( "
If you are using JAXB to do the unmarshal work, you need to define a adapter in
the map class[1], as JAXB doesn't support the map directly.
Once you finished your map class, you can set it into your JAXB data format
context and your route should work as expected.
[1]http://javaevangelist.blogs
rshal(jaxb("${body.myHashMap.get(OBJ_FOR_UNMARSHAL)}))
-thanks
-Original Message-
From: Willem jiang [mailto:willem.ji...@gmail.com]
Sent: Tuesday, June 04, 2013 10:23 PM
To: users@camel.apache.org
Subject: Re: how to pass an XML string to the unmarshal in the route definition
If you are u
gt; -thanks
>
>
>
> -Original Message-
> From: Willem jiang [mailto:willem.ji...@gmail.com]
> Sent: Tuesday, June 04, 2013 10:23 PM
> To: users@camel.apache.org
> Subject: Re: how to pass an XML string to the unmarshal in the route
> definition
>
> If you a
.unmarshal(jaxb("${body.myHashMap.get(OBJ_FOR_UNMARSHAL)}))
>
> -thanks
>
>
>
> -Original Message-
> From: Willem jiang [mailto:willem.ji...@gmail.com]
> Sent: Tuesday, June 04, 2013 10:23 PM
> To: users@camel.apache.org
> Subject: Re: how to pass an XML string to the