jsr356 - Websocket used in Servlet, is "public static void main(final String[] args)" needed? -


this first time working java websockets (not using jetty, using jsr-356 instead), , of examples have seen utilize "public static void main(final string[] args)" map websocket client , server endpoints.

if creating app based in java servlet, method necessary connect 2 socket endpoints? if necessary, how called perform method in connecting class?

your servlet code not have have "public static void main(string[])" method. method entry point used when invoke application command line interface. on other hand, servlet started in different way servlet container , method (public static void main(string[])) not entry point servlets.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -