Re: camel-http4 cookieStore property
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: 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: > > > > > > > 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: > > > > / > > > > 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: > > > > > > > > > Cheers! > > > > - Joery Vreijsen > > > > > > >
RE: camel-http4 cookieStore property
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: 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: > > > 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: > > > 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: > > > Cheers! > > - Joery Vreijsen > > >
RE: camel-http4 cookieStore property
Hi, just some guess from the error message. Have you tried: ? 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: 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: 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: Cheers! - Joery Vreijsen
camel-http4 cookieStore property
Hi, I’m trying to set a customCookieStore to my http4 endpoint configured as below: 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: 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: Cheers! - Joery Vreijsen
Re: CookieStore
Hi I logged a ticket https://issues.apache.org/jira/browse/CAMEL-6702 On Tue, Aug 20, 2013 at 11:02 AM, Markus Wolf markus.w...@sinnerschrader.com wrote: Hi Claus, thank for your feedback. I've currently override the CookieStore with a noop store. I'll have a deeper look and give you an update or a patch I've I manage to create something :) Cheers Markus 2013/8/19 Claus Ibsen claus.ib...@gmail.com: I dont think this is supported. Feel free to dive into to see what a solution could be. And if so log a JIRA and if possible provide a patch. We love contributions On Mon, Aug 19, 2013 at 4:56 PM, Markus Wolf markus.w...@sinnerschrader.com wrote: Hallo camel users, currently we use the http4-endpoint as proxy bridge endpoint for another webservice in a server side application. This service returns some cookies which seem to be stored in the cookie store of the httpclient. During the runtime of our server it seems to never clear the cookie store and the memory consumption is constantly growing. Is there a way to have camel clean the cookie store after each bridged requrest in a per request save way? Thanks for any help Markus -- Markus Wolf, Technical Director markus.w...@sinnerschrader.com https://twitter.com/KnisterPeter M +49 172 7393808 SinnerSchrader Deutschland GmbH | SinnerSchrader Group Völckersstraße 38, 22765 Hamburg, Germany Amtsgericht Hamburg HRB-Nr. 63663 Geschäftsführer: Matthias Schrader (Sprecher), Holger Blank, Thomas Dyckhoff, Dr. Lars Finke, Martin Gassner, Nils Wollny Büros: Hamburg, Frankfurt a. M., München, Prag http://www.sinnerschrader.com | Radical Relationships -- Claus Ibsen - Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen -- Markus Wolf, Technical Director markus.w...@sinnerschrader.com https://twitter.com/KnisterPeter M +49 172 7393808 SinnerSchrader Deutschland GmbH | SinnerSchrader Group Völckersstraße 38, 22765 Hamburg, Germany Amtsgericht Hamburg HRB-Nr. 63663 Geschäftsführer: Matthias Schrader (Sprecher), Holger Blank, Thomas Dyckhoff, Dr. Lars Finke, Martin Gassner, Nils Wollny Büros: Hamburg, Frankfurt a. M., München, Prag http://www.sinnerschrader.com | Radical Relationships -- Claus Ibsen - Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
Re: CookieStore
Hi Claus, thank for your feedback. I've currently override the CookieStore with a noop store. I'll have a deeper look and give you an update or a patch I've I manage to create something :) Cheers Markus 2013/8/19 Claus Ibsen claus.ib...@gmail.com: I dont think this is supported. Feel free to dive into to see what a solution could be. And if so log a JIRA and if possible provide a patch. We love contributions On Mon, Aug 19, 2013 at 4:56 PM, Markus Wolf markus.w...@sinnerschrader.com wrote: Hallo camel users, currently we use the http4-endpoint as proxy bridge endpoint for another webservice in a server side application. This service returns some cookies which seem to be stored in the cookie store of the httpclient. During the runtime of our server it seems to never clear the cookie store and the memory consumption is constantly growing. Is there a way to have camel clean the cookie store after each bridged requrest in a per request save way? Thanks for any help Markus -- Markus Wolf, Technical Director markus.w...@sinnerschrader.com https://twitter.com/KnisterPeter M +49 172 7393808 SinnerSchrader Deutschland GmbH | SinnerSchrader Group Völckersstraße 38, 22765 Hamburg, Germany Amtsgericht Hamburg HRB-Nr. 63663 Geschäftsführer: Matthias Schrader (Sprecher), Holger Blank, Thomas Dyckhoff, Dr. Lars Finke, Martin Gassner, Nils Wollny Büros: Hamburg, Frankfurt a. M., München, Prag http://www.sinnerschrader.com | Radical Relationships -- Claus Ibsen - Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen -- Markus Wolf, Technical Director markus.w...@sinnerschrader.com https://twitter.com/KnisterPeter M +49 172 7393808 SinnerSchrader Deutschland GmbH | SinnerSchrader Group Völckersstraße 38, 22765 Hamburg, Germany Amtsgericht Hamburg HRB-Nr. 63663 Geschäftsführer: Matthias Schrader (Sprecher), Holger Blank, Thomas Dyckhoff, Dr. Lars Finke, Martin Gassner, Nils Wollny Büros: Hamburg, Frankfurt a. M., München, Prag http://www.sinnerschrader.com | Radical Relationships
CookieStore
Hallo camel users, currently we use the http4-endpoint as proxy bridge endpoint for another webservice in a server side application. This service returns some cookies which seem to be stored in the cookie store of the httpclient. During the runtime of our server it seems to never clear the cookie store and the memory consumption is constantly growing. Is there a way to have camel clean the cookie store after each bridged requrest in a per request save way? Thanks for any help Markus -- Markus Wolf, Technical Director markus.w...@sinnerschrader.com https://twitter.com/KnisterPeter M +49 172 7393808 SinnerSchrader Deutschland GmbH | SinnerSchrader Group Völckersstraße 38, 22765 Hamburg, Germany Amtsgericht Hamburg HRB-Nr. 63663 Geschäftsführer: Matthias Schrader (Sprecher), Holger Blank, Thomas Dyckhoff, Dr. Lars Finke, Martin Gassner, Nils Wollny Büros: Hamburg, Frankfurt a. M., München, Prag http://www.sinnerschrader.com | Radical Relationships
Re: CookieStore
I dont think this is supported. Feel free to dive into to see what a solution could be. And if so log a JIRA and if possible provide a patch. We love contributions On Mon, Aug 19, 2013 at 4:56 PM, Markus Wolf markus.w...@sinnerschrader.com wrote: Hallo camel users, currently we use the http4-endpoint as proxy bridge endpoint for another webservice in a server side application. This service returns some cookies which seem to be stored in the cookie store of the httpclient. During the runtime of our server it seems to never clear the cookie store and the memory consumption is constantly growing. Is there a way to have camel clean the cookie store after each bridged requrest in a per request save way? Thanks for any help Markus -- Markus Wolf, Technical Director markus.w...@sinnerschrader.com https://twitter.com/KnisterPeter M +49 172 7393808 SinnerSchrader Deutschland GmbH | SinnerSchrader Group Völckersstraße 38, 22765 Hamburg, Germany Amtsgericht Hamburg HRB-Nr. 63663 Geschäftsführer: Matthias Schrader (Sprecher), Holger Blank, Thomas Dyckhoff, Dr. Lars Finke, Martin Gassner, Nils Wollny Büros: Hamburg, Frankfurt a. M., München, Prag http://www.sinnerschrader.com | Radical Relationships -- Claus Ibsen - Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen