Re: "Dynamic" data format in route

2016-01-25 Thread web_nab...@sunilsamuel.com
.choice() .when(simple("${property.moxyDataFormat} == null")) .throwException(new ExpressionIllegalSyntaxException("no property")) .otherwise() .recipientList(simple("dataformat:${property.moxyDataFormat}:unmarshal")) ;

Re: "Dynamic" data format in route

2013-02-04 Thread Lars-Erik Helander
"").processor().marshal().to("service >> endpoint").unmarshal(...); > > You cannot do this. > > Data-Formats is not as flexible as endpoint uris are. > > > You can use a POJO where you can do your dynamic marshal / unmarshal > from Jav

Re: "Dynamic" data format in route

2013-02-04 Thread Claus Ibsen
flexible as endpoint uris are. You can use a POJO where you can do your dynamic marshal / unmarshal from Java code. > > Thanks > > Lars > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Dynamic-data-format-in-route-tp5726853.html >

Re: "Dynamic" data format in route

2013-02-03 Thread Lars-Erik Helander
t;> marshal/unmarshal directly in a processor? If so, what is the syntax? >> >> >> from("").processor().marshal().to("service >> endpoint").unmarshal(...); >> >> >> Thanks >> >> Lars >> >> >> >> -- >> View this message in context: >> http://camel.465427.n5.nabble.com/Dynamic-data-format-in-route-tp5726853.html >> Sent from the Camel - Users mailing list archive at Nabble.com >> (http://Nabble.com). > > >

Re: "Dynamic" data format in route

2013-02-03 Thread Willem jiang
yntax? > > > from("").processor().marshal().to("service > endpoint").unmarshal(...); > > > Thanks > > Lars > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Dynamic-data-format-in-route-tp5726853.html > Sent from the Camel - Users mailing list archive at Nabble.com > (http://Nabble.com).

"Dynamic" data format in route

2013-02-03 Thread helander
in a processor? If so, what is the syntax? from("").processor().marshal().to("service endpoint").unmarshal(...); Thanks Lars -- View this message in context: http://camel.465427.n5.nabble.com/Dynamic-data-format-in-route-tp5726853.html Sent from the Camel - Users mailing list archive at Nabble.com.