journal6 ›› 2015, Vol. 36 ›› Issue (4): 18-22.DOI: 10.3969/j.cnki.jdxb.2015.04.005
• Information and computer •
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.
DING Zhen-Fan. Communication and Display Processing for the Real-Time Monitoring Application Based on Spring4+HTML5[J]. journal6, 2015, 36(4): 18-22.
Add to citation manager EndNote|Ris|BibTeX