Building a Spring Integration 4.1 WebSocket Endpoint
By Josh Long
Spring Integration 4.1 was just released and it includes a lot of great new features! One of my favorites? Smart integration with the Spring 4 WebSocket support. Now you can compose a integration flow whose final destination is a WebSocket client. There is also support for acting as the client to a WebSocket service.
In order to compile it, you will need Java 8 (we make heavy use of lambdas here) and the following Maven dependencies:
- groupId:
org.springframework.integration
, artifactId:spring-integration-java-dsl
, version:1.0.0.RC1
. - groupId:
org.springframework.integration
, artifactId:spring-integration-websocket
, version:4.1.0.RELEASE
. - groupId:
org.springframework.boot
, artifactId:spring-boot-starter-websocket
, version:1.2.0.RC1
. …