how to pass an XML string to the unmarshal in the route definition

2013-06-04 Thread Vegi, Vamsi (MAN-Corporate-CON)
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( "

Re: how to pass an XML string to the unmarshal in the route definition

2013-06-04 Thread Willem jiang
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

RE: how to pass an XML string to the unmarshal in the route definition

2013-06-05 Thread Vegi, Vamsi (MAN-Corporate-CON)
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

Re: how to pass an XML string to the unmarshal in the route definition

2013-06-05 Thread Claus Ibsen
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

Re: how to pass an XML string to the unmarshal in the route definition

2013-06-06 Thread Christian Müller
.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