摘 要: 针对Java Web实时系统中的消息推送这一关键问题,本文基于Tomcat8和WebSocket标准,提出并且实
现了一个服务端定点推送模型,能够向指定的Web注册用户进行消息推送。该模型具有非广播的特点,即在没有浏览器
请求的情况下通过Servlet主动将消息推送至某个已注册的Web用户。该模型已经成功地应用于呼叫中心系统中将电话
分机状态和弹屏信息推送给Web坐席,该模型也可以用于即时消息、游戏应用、实时证券报价、股票系统等Web实时系
统,具有广泛的使用价值。 |
关键词: Tomcat8;WebSocket;定点推送 |
中图分类号: TP311
文献标识码: A
|
|
The Implementation of Server Accurate Push by Using Websocket and Servlet |
QIAN Yuhong
|
( Wuhan Polytechnic, School of Computer Technology and Software Engineering, Wuhan 430074, China)
|
Abstract: Based on Tomcat 8 and Web Socket Standards,the paper proposes and implements a model of server accurate push,which can push messages to specified web registered users.The push in this model is non-broadcast,actively sending message to a registered web user through Servlet without browser requests.This model has been successfully applied in the Call Center system,pushing extension status and popup screen information to web Call Center agents.The model can also be applied in instant messaging,gaming,real-time stock quotation,and other real-time web systems,with extensive practical value. |
Keywords: Tomcat8;WebSocket;server accurate push |