users@websocket-spec.java.net

[jsr356-users] Some feedback on PR

From: Arun Gupta <arun.p.gupta_at_oracle.com>
Date: Wed, 13 Feb 2013 09:11:52 -0800

- Why is DeploymentException a checked exception instead of
RuntimeException ?

- WebSocketContainer.connecToServer javadoc says:

Connect the supplied annotated object to its server. The supplied object
must be a class decorated with the class
level|javax.websocket.server.WebSocketEndpoint|
<../../javax/websocket/server/WebSocketEndpoint.html>annotation.

Why would I use this method to connect to server when the URI can be
specified in the annotation itself ? Does it really mean
@WebSocketClient instead ?

- I think it'll be good to have connectToServer overloaded methods with
second parameter as String or may be just have that version only.

Thanks,
Arun

-- 
http://twitter.com/arungupta
http://blogs.oracle.com/arungupta