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:
./mvnw package
- start stand-alone Jetty:
cd src/main/jetty/ && java -server -jar ${JETTY_HOME}/start.jar ; cd -
- generate alternative
pom.xml
file:grep -v 'EMBEDDED-REMOVE' pom.xml >pom-embedded-jetty.xml
- build the project:
./mvnw -f pom-embedded-jetty.xml package
- start embedded Jetty:
java -server -jar target/servlet-scopes-sample-1.0-SNAPSHOT-jar-with-dependencies.jar
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 it a SIGINT
another way.