camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carl-Philipp Harmant <cp.harm...@gmail.com>
Subject Re: recipientList not working
Date Wed, 28 Jun 2017 22:26:44 GMT
You have typo in
.setHeader("*prameter*",constant("20170626"))
should work with

*parameter*
Carl

On Wed, Jun 28, 2017 at 4:59 PM sap <patelsachin@gmail.com> wrote:

> I am using recipient list because I need date as part of URL.
>
> .setHeader("prameter",constant("20170626"))
>
> .recipientList(simple("{{test.url}}/${header.parameter}?bridgeEndpoint=true"))
>
> However, when starting camel, I get below error.
>
> Caused by: java.lang.IllegalArgumentException: Could not resolve
> placeholder
> 'header.parameter' in value
> "
> http://testapp.test.com/sap/rest/asofResults/${header.parameter}?bridgeEndpoint=true
> "
>
>
> What am I doing wrong?
>
> Thanks,
>
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/recipientList-not-working-tp5805389.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message