• 首页
  • 期刊简介
  • 编委会
  • 投稿指南
  • 收录情况
  • 杂志订阅
  • 联系我们
引用本文:钱宇虹.使用Websocket和Servlet实现服务器定点推送[J].软件工程,2016,19(10):30-33.【点击复制】
【打印本页】   【下载PDF全文】   【查看/发表评论】  【下载PDF阅读器】  
←前一篇|后一篇→ 过刊浏览
分享到: 微信 更多
使用Websocket和Servlet实现服务器定点推送
钱宇虹
(武汉职业技术学院计算机技术与软件工程学院,湖北 武汉 430074)
摘 要: 针对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


版权所有:软件工程杂志社
地址:辽宁省沈阳市浑南区新秀街2号 邮政编码:110179
电话:0411-84767887 传真:0411-84835089 Email:semagazine@neusoft.edu.cn
备案号:辽ICP备17007376号-1
技术支持:北京勤云科技发展有限公司

用微信扫一扫

用微信扫一扫