Hi Joery!

Anytime you see that the endpoint requires a bean reference, its indeed
referring to a bean in the registry [1], that's why it needs a "#". You're
right when you say that the docs may be more clear about it.

[1] - http://camel.apache.org/registry.html

Cheers!

Zanini

On Mon, Jan 29, 2018 at 9:19 AM, Joery Vreijsen <jhjvreij...@gmail.com>
wrote:

> Hi Stephan,
>
> That does indeed seem to work, I had to find this notation in the
> http-session-handling documentation (http://camel.apache.org/http-
> session-handling.html) as it wasn’t so clear from the http4 documentation
> page (http://camel.apache.org/http4.html).
>
> Thanks!
>
> - Joery Vreijsen
>
> On 29 Jan 2018 12:14 +0100, Siano, Stephan <stephan.si...@sap.com>, wrote:
> > Hi,
> >
> > just some guess from the error message. Have you tried: <toD
> uri="http4://localhost:9001?cookieStore=#customCookieStore" />?
> >
> > Best regards
> > Stephan
> >
> > -----Original Message-----
> > From: Joery Vreijsen [mailto:jhjvreij...@gmail.com]
> > Sent: Montag, 29. Januar 2018 10:53
> > To: users@camel.apache.org
> > Subject: camel-http4 cookieStore property
> >
> > Hi,
> >
> > I’m trying to set a customCookieStore to my http4 endpoint configured as
> below:
> >
> > <toD uri="http4://localhost:9001?cookieStore=customCookieStore" /
> >
> > This gives me the following exception:
> >
> > Failed to resolve endpoint: 
> > http4://localhost:9001?cookieStore=customCookieStore due
> to: Could not find a suitable setter for property: cookieStore as there
> isn't a setter method with same type: java.lang.String nor type conversion
> possible: No type converter available to convert from type:
> java.lang.String to the required type: org.apache.http.client.CookieStore
> with value customCookieStore
> >
> > It doesn’t seem get the reference to my declared bean of the
> customCookieStore:
> >
> > <bean id=“customCookieStore" class=“org.company.package.customCookieStore"
> /
> >
> > Am I doing something wrong in the configuration?
> >
> > When declaring a bean for the http4 component in my blueprint.xml, it
> does however work as expected:
> >
> > <bean id="http4" class="org.apache.camel.component.http4.HttpComponent"
> >     <property name="cookieStore" ref=“customCookieStore"/
> > </bean
> >
> > Cheers!
> >
> > - Joery Vreijsen
> >
> >
> >
>

Reply via email to