journal6 ›› 2015, Vol. 36 ›› Issue (4): 18-22.DOI: 10.3969/j.cnki.jdxb.2015.04.005

• Information and computer • Previous Articles     Next Articles

Communication and Display Processing for the Real-Time Monitoring Application Based on Spring4+HTML5

 DING  Zhen-Fan   

  1. (School of Information Engineering,East China Jiaotong University,Nanchang 330013,China)
  • Online:2015-07-25 Published:2015-07-27

Abstract: In view of message pushing and display processing problems in the remote data monitoring application for the production line in one enterprise,this paper proposes an implementation scheme based on HTML5 and the Spring framework 4.WebSocket technology is used for the message transfer on the two way communication between the web browser and Web server.The Spring WebSocket service configuration and the processing scheme for message pushing are studied.The creation of SockJS connection between the client and server and the processing method for STOMP message publishing/subscription are described.By providing the REST style Web services with the messages pushing process,it is convenient for the caller to publish message.The system adopts Canvas in HTML5 for the real time data display processing,thus achieving the effect of displaying curves of various colors in the same screen.The Spring4+HTML5 scheme has the advantages of easy configuration,flexible application and efficient operation and can get satisfactory practical effects.

Key words: HTML5, Spring4, WebSocket, Canvas, real-time monitoring, SockJS

WeChat e-book chaoxing Mobile QQ