Tag Archives: Stomp

Use WebSockets with Spring, SockJS and Stomp

This guide walks you through the process of creating a "hello world" application that sends messages back and forth, between a browser and the server. WebSocket is a very thin, lightweight layer above TCP. It makes it very suitable to use "subprotocols" to embed messages. In this guide, we’ll dive in and use STOMP messaging with Spring to create an interactive web application. Maven Dependencies First, we need to add the Spring messaging modules in the POM file: Spring MVC Configuration Next, we need to add the message broker config to the Spring MVC config XML file. The main thing here is the setup of the message broker for handling the message exchange between the server and its clients. This is…

Continue Reading
Contact Us
  • Nanyang Technological University, Singapore
  • root [at] haozhexie [dot] com