a) are not thread-safe
b) are cached and reused for subsequent incoming requests.

Thanks for helpful response.

I did not expect these tomcat "features"...
Now I am reinspecting my implementation and I have found one place that seems fuzzy to me.

public void onTimeout(AsyncEvent ae) throws IOException {
        ae.getAsyncContext().getResponse().getWriter().write("no changes");
}
There is not much in the documentation.

AsyncListener has method onTimeout. I am using it to inform subscribers that there is no change. Is it legal to sent back some response on timeout (like "no changes") ? No recycle can happen during this action ? I have looked in the sources and request recycle is called after this listener is executed. I just want to be sure that this order is always the same and any other tomcat feature will not interfere.

best regards

Peter Cipov



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to