[undertow-dev] asynchronous cassandra queries

Stuart Douglas sdouglas at redhat.com
Fri May 23 14:10:09 EDT 2014


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


More information about the undertow-dev mailing list