This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
res.setContentType("text/html");
res.setHeader("Cache-Control", "private");
res.setHeader("Pragma", "no-cache");
PrintWriter writer = res.getWriter();
// for IE
writer.println("<!-- Comet is a programming technique that enables web servers to send data to the client without having any need for the client to request it. -->\n");
writer.flush();
req.setAsyncTimeout(10 * 60 * 1000);
final AsyncContext ac = req.startAsync();
queue.add(ac);
ac.setTimeout(10 * 60 * 1000);
req.addAsyncListener(new AsyncListener() {
ac.addListener(new AsyncListener() {
public void onComplete(AsyncEvent event) throws IOException {
queue.remove(ac);
}
public void onError(AsyncEvent arg0) throws IOException {
public void onStartAsync(AsyncEvent event) throws IOException {
});
@Override