Few trivial servlets and websockets to test basic functionality of servlet-scopes
lib. Available as a portable war or an executable jar powered by embedded Jetty.
- java 11 is required to build the app (newer versions will probably work also).
- if you are using a SNAPSHOT version, build and install
servlet-scopes
first:cd ..; ./mvnw install; cd -
- to deploy the war to a stand-alone Jetty using provided sample config, download and extract Jetty distribution and export
JETTY_HOME
env var pointing to the folder where Jetty was extracted.
- build the project with
./mvnw package
- start either stand-alone or embedded Jetty:
- embedded:
java -server -jar target/servlet-scopes-sample-1.0-SNAPSHOT-jar-with-dependencies.jar
- stand-alone:
cd src/main/jetty/ && java -server -jar ${JETTY_HOME}/start.jar ; cd -
- embedded:
- point your browser to http://localhost:8080/test to use the apps
- when done, you can stop the server by pressing
CTRL+C
on its console or sending itSIGINT
other way