Websocket application rewrote for glassfish4