You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by ablevine1 <ab...@gmail.com> on 2015/07/23 01:27:16 UTC

Async Requests via REST DSL

I really like the camel REST DSL, but would like to make my servlet container
to not hold onto http request handling threads when processing REST
requests.  Is there a way to specify this via the REST DSL?  What I am
looking for is something that works similar to spring's DeferredResult.   I
would like the servlet thread to be released when the route is being
processed and then have the response be returned to the client when the
route completes.  Any suggestions would be appreciated.



--
View this message in context: http://camel.465427.n5.nabble.com/Async-Requests-via-REST-DSL-tp5769781.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Async Requests via REST DSL

Posted by Claus Ibsen <cl...@gmail.com>.
Yeah always above until its fixed etc.

On Thu, Jul 23, 2015 at 2:19 PM, Ryan Moquin <fr...@gmail.com> wrote:
> Does this affect only 2.13.0?  Just confirming since that's the only
> version mentioned in the ticket but guessing it affects 2.13.0 and above?
>
> On Thu, Jul 23, 2015, 1:58 AM Claus Ibsen <cl...@gmail.com> wrote:
>
>> Hi
>>
>> I think we have a ticket about this
>> https://issues.apache.org/jira/browse/CAMEL-6707
>>
>> You can use jetty / netty-http etc they support async mode. And this
>> happens automatic if during the routing the async routing engine
>> kicks-in.
>>
>>
>> On Thu, Jul 23, 2015 at 1:27 AM, ablevine1 <ab...@gmail.com> wrote:
>> > I really like the camel REST DSL, but would like to make my servlet
>> container
>> > to not hold onto http request handling threads when processing REST
>> > requests.  Is there a way to specify this via the REST DSL?  What I am
>> > looking for is something that works similar to spring's DeferredResult.
>>  I
>> > would like the servlet thread to be released when the route is being
>> > processed and then have the response be returned to the client when the
>> > route completes.  Any suggestions would be appreciated.
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://camel.465427.n5.nabble.com/Async-Requests-via-REST-DSL-tp5769781.html
>> > Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>>
>> --
>> Claus Ibsen
>> -----------------
>> http://davsclaus.com @davsclaus
>> Camel in Action 2nd edition: http://www.manning.com/ibsen2
>>



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2nd edition: http://www.manning.com/ibsen2

Re: Async Requests via REST DSL

Posted by Ryan Moquin <fr...@gmail.com>.
Does this affect only 2.13.0?  Just confirming since that's the only
version mentioned in the ticket but guessing it affects 2.13.0 and above?

On Thu, Jul 23, 2015, 1:58 AM Claus Ibsen <cl...@gmail.com> wrote:

> Hi
>
> I think we have a ticket about this
> https://issues.apache.org/jira/browse/CAMEL-6707
>
> You can use jetty / netty-http etc they support async mode. And this
> happens automatic if during the routing the async routing engine
> kicks-in.
>
>
> On Thu, Jul 23, 2015 at 1:27 AM, ablevine1 <ab...@gmail.com> wrote:
> > I really like the camel REST DSL, but would like to make my servlet
> container
> > to not hold onto http request handling threads when processing REST
> > requests.  Is there a way to specify this via the REST DSL?  What I am
> > looking for is something that works similar to spring's DeferredResult.
>  I
> > would like the servlet thread to be released when the route is being
> > processed and then have the response be returned to the client when the
> > route completes.  Any suggestions would be appreciated.
> >
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/Async-Requests-via-REST-DSL-tp5769781.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2nd edition: http://www.manning.com/ibsen2
>

Re: Async Requests via REST DSL

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

I think we have a ticket about this
https://issues.apache.org/jira/browse/CAMEL-6707

You can use jetty / netty-http etc they support async mode. And this
happens automatic if during the routing the async routing engine
kicks-in.


On Thu, Jul 23, 2015 at 1:27 AM, ablevine1 <ab...@gmail.com> wrote:
> I really like the camel REST DSL, but would like to make my servlet container
> to not hold onto http request handling threads when processing REST
> requests.  Is there a way to specify this via the REST DSL?  What I am
> looking for is something that works similar to spring's DeferredResult.   I
> would like the servlet thread to be released when the route is being
> processed and then have the response be returned to the client when the
> route completes.  Any suggestions would be appreciated.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Async-Requests-via-REST-DSL-tp5769781.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2nd edition: http://www.manning.com/ibsen2