WebSocket Tutorial 14 – WebSocket Path Mapping + Java Servlet + HttpSession + glassFish 4 + tomcat 8



WebSocket Tutorial 14 – WebSocket Path Mapping + Java Servlet + HttpSession + glassFish 4 + tomcat 8

WebSocket Tutorial 14 - WebSocket Path Mapping + Java Servlet + HttpSession + glassFish 4 + tomcat 8

00:06 create a new web project running on GlassFish 4
00:25 go over the various classes in this application
02:20 how to pickup the {chatroom} path parameter in ChatroomServerEndpoint
02:30 handle OnOpen event in ChatroomServerEndpoint
02:57 code generate username page in UsernNameServlet
04:45 demo and explain completed application running on a different server before proceeding with the coding
05:42 code doGet method in UserNameServlet
06:44 code generate chatroom page in UserNameServlet
08:25 finish coding UserNameServlet
08:53 code code modifyHandshake in ChatroomServerConfigurator class
09:54 codeChatroomServerEndpoint class
10:00 keep track of the chatrooms and their associated users
10:37 return Set of users given chatroom name
11:21 handleOpen method in ChatroomServerEndpoint
12:30 handle OnError event in ChatroomServerEndpoint
12:40 handle OnClose event in ChatroomServerEndpoint
13:32 handle OnMessage event in ChatroomServerEndpoint
14:07 build JSON data in ChatroomServerEndpoint
15:35 test run completed application on GlassFish 4 server
19:04 create a copy of this web project but running on tomcat 8
20:25 test run completed application on tomcat 8

► get access to members-only video contents + support:
https://www.youtube.com/channel/UCUvwlMMaeppKPdtAK8PxO8Q/join
► website + download source code:
https://prototypeprj.com
https://ai.prototypeprj.com
https://crypto.prototypeprj.com
► download directly:
download ai source code @ https://sites.fastspring.com/prototypeprj/instant/ai
download crypto source code @ https://sites.fastspring.com/prototypeprj/instant/crypto
download source code (old) page # 2 @ https://sites.fastspring.com/prototypeprj/instant/2020
download source code (older) page # 1 @ https://sites.fastspring.com/prototypeprj/instant/all

Comments are closed.