public class MyAsyncListener implements AsyncListener { Logger logger = Logger.getLogger(MyAsyncListener.class.getName());
@Override public void onComplete (AsyncEvent event) throws IOException { logger.info("async process completed "); }
@Override public void onTimeout (AsyncEvent event) throws IOException { logger.info("async process timeout"); writeToResponse(event, "async process time out "+System.currentTimeMillis()); }