users@glassfish.java.net

Re: AW: WebSockets returning: Response code was not 101: 405

From: <forums_at_java.net>
Date: Fri, 8 Jul 2011 06:53:03 -0500 (CDT)

Small correction:

The Exception is thrown once after each /redeploy/ of the WebSocket
Application, not just after each server restart.

At the moment I'm doing this:

try {
    webSocket = new
ClientWebSocket("wss://localhost:8181/WebSocketServer/websocket", listener);
} catch (IOException e) {
    //Retry - because of the issue when the app was just deployed.
    try {
        webSocket = new
ClientWebSocket("wss://localhost:8181/WebSocketServer/websocket", listener);
    } catch (IOException ioe) {
                LOGGER.severe(e.getMessage());
    }
}

But this is not really acceptable.

Thanks


--
[Message sent by forum member 'MohamzJava']
View Post: http://forums.java.net/node/819491