2013/6/14 Mark Thomas wrote: > > On 14/06/2013 07:00, Violeta Georgieva wrote: >> >> >> Is that mean that if I have AsyncListener that does some work in >> onComplete() then I will not be able to use the request and response >> objects? > > > Yes and no. You can't call getRequest() or getResponse() on the AsyncContext but you can get the objects from getSuppliedRequest() and getSuppliedResposne() on the AsyncEvent object. > > The Tomcat unit tests were updated to do things this way as a number of them started failing as they were calling getRequest() or getResponse() during onComplete() > > Mark >
Agh.... You are right. Thanks