Table of contents
Maven
All modules use the same version. These dependency examples use release tag wamp2spring-parent-4.0.1. The source checkout documented by this wiki is 4.0.2-SNAPSHOT.
Baseline
- Java 17
- Spring Framework 7
- Spring Boot 4 for the sample setups in this wiki
The current source POM pins the following dependency versions. These are the snapshot's build inputs, not a compatibility matrix for older releases.
| Component | Version in the current POM |
|---|---|
| Spring Framework | 7.0.10 |
| Spring Boot (test applications) | 4.1.2 |
| Jackson | 3.2.4 |
| Spring Security | 7.1.2 |
| Spring Session | 4.1.1 |
Jackson APIs use the tools.jackson packages. The library modules are not Boot starters; your application also needs the web runtime for its chosen stack.
Core application modules
Servlet stack
<dependency>
<groupId>ch.rasc</groupId>
<artifactId>wamp2spring-servlet</artifactId>
<version>4.0.1</version>
</dependency>
Reactive stack
<dependency>
<groupId>ch.rasc</groupId>
<artifactId>wamp2spring-reactive</artifactId>
<version>4.0.1</version>
</dependency>
Optional integration modules
Spring Security for servlet applications
<dependency>
<groupId>ch.rasc</groupId>
<artifactId>wamp2spring-security-servlet</artifactId>
<version>4.0.1</version>
</dependency>
Spring Security for reactive applications
<dependency>
<groupId>ch.rasc</groupId>
<artifactId>wamp2spring-security-reactive</artifactId>
<version>4.0.1</version>
</dependency>
Spring Session integration for servlet applications
<dependency>
<groupId>ch.rasc</groupId>
<artifactId>wamp2spring-session-servlet</artifactId>
<version>4.0.1</version>
</dependency>
Module selection guide
- Start with
wamp2spring-servletif your app uses Spring MVC or servlet WebSocket infrastructure. - Start with
wamp2spring-reactiveif your app uses Spring WebFlux. - Add
wamp2spring-security-servletorwamp2spring-security-reactiveif you want Spring Security authorization rules on inbound WAMP messages. - Add
wamp2spring-session-servletif you need Spring Session to track servlet-side WebSocket activity.
Notes
- The core library module is normally pulled in transitively and does not need to be added manually.
- Keep all
wamp2springmodules on the same version.
Use the current source
From the root of the source repository, install all modules into your local Maven repository:
.\mvnw.cmd install
On Unix, use ./mvnw install. Then set each ch.rasc:wamp2spring-* dependency to 4.0.2-SNAPSHOT. This does not require a remote snapshot repository. See Development for the build and test commands.
Source: parent POM.
Table of Contents
- Introduction
- Quickstart
- Maven
- Modules
- Features
- Configuration
- RPC
- Publish/Subscribe
- Meta APIs
- Security
- Authentication
- Transports
- Spring Session
- Events