Example with an embedded Tomcat server exposing a websocket endpoint configured programmatically.
mvn clean package
java -jar target/embedded-tomcat-with-programmatic-websocket-0.1-SNAPSHOT.jar
Using your favorite websocket client (ex. Simple Websocket Client), access ws://localhost:8080/echo