You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Carlo Camerino <ca...@gmail.com> on 2010/07/06 09:44:01 UTC

CamelProxyFactoryBean - How to Set A Timeout?

Hi,

Is there anyway that I could set a timeout for camel's CamelProxyFactoryBean.

The equivalent bean in spring can have a timeout, namely the
HttpINvokerProxyFactoryBean...

i'm trying to find a similar function for camel..


thanks
carlo

Re: CamelProxyFactoryBean - How to Set A Timeout?

Posted by Claus Ibsen <cl...@gmail.com>.
On Tue, Jul 6, 2010 at 12:30 PM, Carlo Camerino
<ca...@gmail.com> wrote:
> thanks!
>
> btw, do i have to set the timeout on the server route builder or on
> the client route builder?
>

Client as the timeout if client based, while it waits for the server to reply.


>
>
> On Tue, Jul 6, 2010 at 4:04 PM, Claus Ibsen <cl...@gmail.com> wrote:
>> On Tue, Jul 6, 2010 at 9:44 AM, Carlo Camerino <ca...@gmail.com> wrote:
>>> Hi,
>>>
>>> Is there anyway that I could set a timeout for camel's CamelProxyFactoryBean.
>>>
>>> The equivalent bean in spring can have a timeout, namely the
>>> HttpINvokerProxyFactoryBean...
>>>
>>> i'm trying to find a similar function for camel..
>>>
>>
>> No
>>
>> That Spring is HTTP based and thus its tied to the HTTP and thus can
>> set timeout on the network protocol.
>>
>> The Camel proxy is generic and thus sends a message to a given
>> endpoint. So you gotta set the timeout on the proxied endpoint
>> instead.
>> The camel-http component has options for setting timeout
>> http://camel.apache.org/http
>>
>>
>>
>>
>>
>>>
>>> thanks
>>> carlo
>>>
>>
>>
>>
>> --
>> Claus Ibsen
>> Apache Camel Committer
>>
>> Author of Camel in Action: http://www.manning.com/ibsen/
>> Open Source Integration: http://fusesource.com
>> Blog: http://davsclaus.blogspot.com/
>> Twitter: http://twitter.com/davsclaus
>>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Re: CamelProxyFactoryBean - How to Set A Timeout?

Posted by Carlo Camerino <ca...@gmail.com>.
thanks!

btw, do i have to set the timeout on the server route builder or on
the client route builder?



On Tue, Jul 6, 2010 at 4:04 PM, Claus Ibsen <cl...@gmail.com> wrote:
> On Tue, Jul 6, 2010 at 9:44 AM, Carlo Camerino <ca...@gmail.com> wrote:
>> Hi,
>>
>> Is there anyway that I could set a timeout for camel's CamelProxyFactoryBean.
>>
>> The equivalent bean in spring can have a timeout, namely the
>> HttpINvokerProxyFactoryBean...
>>
>> i'm trying to find a similar function for camel..
>>
>
> No
>
> That Spring is HTTP based and thus its tied to the HTTP and thus can
> set timeout on the network protocol.
>
> The Camel proxy is generic and thus sends a message to a given
> endpoint. So you gotta set the timeout on the proxied endpoint
> instead.
> The camel-http component has options for setting timeout
> http://camel.apache.org/http
>
>
>
>
>
>>
>> thanks
>> carlo
>>
>
>
>
> --
> Claus Ibsen
> Apache Camel Committer
>
> Author of Camel in Action: http://www.manning.com/ibsen/
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
>

Re: CamelProxyFactoryBean - How to Set A Timeout?

Posted by Claus Ibsen <cl...@gmail.com>.
On Tue, Jul 6, 2010 at 9:44 AM, Carlo Camerino <ca...@gmail.com> wrote:
> Hi,
>
> Is there anyway that I could set a timeout for camel's CamelProxyFactoryBean.
>
> The equivalent bean in spring can have a timeout, namely the
> HttpINvokerProxyFactoryBean...
>
> i'm trying to find a similar function for camel..
>

No

That Spring is HTTP based and thus its tied to the HTTP and thus can
set timeout on the network protocol.

The Camel proxy is generic and thus sends a message to a given
endpoint. So you gotta set the timeout on the proxied endpoint
instead.
The camel-http component has options for setting timeout
http://camel.apache.org/http





>
> thanks
> carlo
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus