ajax long time polling with java servlet