Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Spring Websockets sample - tailing a file

This is an example application using Spring Websockets support.

It does something simple - tailing a file, you can see the tailed file through a simply tailing it from a terminal or on the Websocket based UI


  1. Generating a sample file to tail: The application uses Spring Integration to write random quotes to a file.

  2. Tailing a file and sending contents to a Spring Websocket managed topic: This again is accomplished using Spring Integration

  3. UI: UI is Angular js based, and uses SockJS with Stomp as the message protocol to show the contents of the tailed file as new information flows through

Running the Sample

The sample is Spring-boot based and can be run with the following command:

mvn spring-boot:run
You can’t perform that action at this time.