users@glassfish.java.net

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

From: Justin Lee <justin.d.lee_at_oracle.com>
Date: Fri, 08 Jul 2011 10:18:37 -0400

That's very strange. I'll take a look and see. I've not seen that
happen but i've not tried it with wss.

On 7/8/11 7:53 AM, forums_at_java.net wrote:
> 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
>
>