This is my first time working with Java Websockets (not using Jetty, using JSR-356 instead), and all of the examples that I have seen utilize the "public static void main(final String[] args)" to map the Websocket client and server endpoints.
If I am creating an app based in a Java Servlet, then is that method necessary to connect the two socket endpoints? If it is necessary, then how does it even get called to perform that method in that connecting class?