.choice()
.when(simple("${property.moxyDataFormat} == null"))
.throwException(new ExpressionIllegalSyntaxException("no
property"))
.otherwise()
.recipientList(simple("dataformat:${property.moxyDataFormat}:unmarshal"))
;
"").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
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
>
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).
>
>
>
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).
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.