[undertow-dev] asynchronous cassandra queries

Adrian agbauer at gmail.com
Fri May 23 14:19:10 EDT 2014


Really? I tried dispatch(this) and dispatching to a separate thread pool I
created. In both cases exchange.isComplete() returned true in my Cassandra
listener and writing response data resulted in an exception.
On May 23, 2014 11:10 AM, "Stuart Douglas" <sdouglas at redhat.com> wrote:

> You need to call the HttpServerExchange#dispatch() method, this will stop
> the exchange from ending when the call stack returns.
>
> Stuart
>
> ----- Original Message -----
> > From: "Adrian" <agbauer at gmail.com>
> > To: undertow-dev at lists.jboss.org
> > Sent: Friday, 23 May, 2014 12:21:53 PM
> > Subject: [undertow-dev] asynchronous cassandra queries
> >
> > Hi
> >
> > I'm trying to query Cassandra asynchronously from inside an HttpHandler,
> but
> > by the time the listener is run, Undertow has closed the response
> channel.
> > Is there some way to keep it open? Can you suggest another approach?
> >
> > Thanks
> > Adrian
> >
> > _______________________________________________
> > undertow-dev mailing list
> > undertow-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/undertow-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20140523/e1512e5b/attachment.html 


More information about the undertow-dev mailing list