+
+ Demo Web Application Only - Do NOT Deploy in Production
+
+
+
+
Blocking vs Asynchronous REST
+
+ This demo calls the EBay WS API both synchronously and asynchronously, to obtain items matching each of the keywords passed on the query string. The time the request thread is held by the servlet is displayed in red for both.
+
+
+
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ By the use of Asynchronous Servlets and the Jetty Asynchronous client, the server is able to release the thread (green) while waiting for the response from Ebay. This thread goes back into the thread pool and can service many other requests during the wait. This greatly reduces the number of threads needed, which in turn greatly reduces the memory requirements of the server.
+
+
+ Press your browser's reload button to see even better results after JIT and TCP/IP warmup!
+
+
+
+
+
+
diff --git a/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/src/main/webapp/small_powered_by.gif b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/src/main/webapp/small_powered_by.gif
new file mode 100644
index 00000000000..c5dd44319f0
Binary files /dev/null and b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/src/main/webapp/small_powered_by.gif differ
diff --git a/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/pom.xml b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/pom.xml
new file mode 100644
index 00000000000..6607c47f4b3
--- /dev/null
+++ b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/pom.xml
@@ -0,0 +1,29 @@
+
+
+ org.eclipse.jetty.ee8.demos
+ jetty-ee8-demos
+ 12.0.0-SNAPSHOT
+
+
+ 4.0.0
+ jetty-ee8-demo-async-rest
+ pom
+ EE8 :: Jetty Demo :: Async Rest
+
+
+ jetty-ee8-demo-async-rest-jar
+ jetty-ee8-demo-async-rest-webapp
+ jetty-ee8-demo-async-rest-server
+
+
+
+
+
+ org.eclipse.jetty.ee8.demos
+ jetty-ee8-demo-async-rest-jar
+ ${project.version}
+
+
+
+
+
diff --git a/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-simple-webapp/pom.xml b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-simple-webapp/pom.xml
new file mode 100644
index 00000000000..af35b73a8d8
--- /dev/null
+++ b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-simple-webapp/pom.xml
@@ -0,0 +1,19 @@
+
+
+
+ org.eclipse.jetty.ee8.demos
+ jetty-ee8-demos
+ 12.0.0-SNAPSHOT
+
+
+ 4.0.0
+ jetty-ee8-demo-simple-webapp
+ EE8 :: Jetty Demo :: Simple :: Webapp
+ war
+
+
+ ${project.groupId}.simple
+
+
+
+
diff --git a/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-simple-webapp/src/main/config/modules/demo.d/ee8-demo-simple.properties b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-simple-webapp/src/main/config/modules/demo.d/ee8-demo-simple.properties
new file mode 100644
index 00000000000..01902893d61
--- /dev/null
+++ b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-simple-webapp/src/main/config/modules/demo.d/ee8-demo-simple.properties
@@ -0,0 +1 @@
+environment: ee8
diff --git a/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-simple-webapp/src/main/config/modules/ee8-demo-simple.mod b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-simple-webapp/src/main/config/modules/ee8-demo-simple.mod
new file mode 100644
index 00000000000..920e73d7a7a
--- /dev/null
+++ b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-simple-webapp/src/main/config/modules/ee8-demo-simple.mod
@@ -0,0 +1,16 @@
+[description]
+Demo EE8 Simple Webapp
+
+[environment]
+ee8
+
+[tags]
+demo
+webapp
+
+[depends]
+ee8-deploy
+
+[files]
+basehome:modules/demo.d/ee8-demo-simple.properties|webapps/ee8-demo-simple.properties
+maven://org.eclipse.jetty.ee8.demos/jetty-ee8-demo-simple-webapp/${jetty.version}/war|webapps/ee8-demo-simple.war
diff --git a/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-simple-webapp/src/main/webapp/WEB-INF/web.xml b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-simple-webapp/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 00000000000..bb3adbe9e3a
--- /dev/null
+++ b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-simple-webapp/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,15 @@
+
+
+
+ EE8 Demo Simple WebApp
+
+
+
+ icon
+ image/vnd.microsoft.icon
+
+
+
diff --git a/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-simple-webapp/src/main/webapp/index.html b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-simple-webapp/src/main/webapp/index.html
new file mode 100644
index 00000000000..40917f44acd
--- /dev/null
+++ b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-simple-webapp/src/main/webapp/index.html
@@ -0,0 +1,6 @@
+
+
+
+
Hello World!
+
+
diff --git a/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-simple-webapp/src/main/webapp/jetty.icon b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-simple-webapp/src/main/webapp/jetty.icon
new file mode 100644
index 00000000000..54e2e610433
Binary files /dev/null and b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-simple-webapp/src/main/webapp/jetty.icon differ
diff --git a/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-simple-webapp/src/main/webapp/jetty.png b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-simple-webapp/src/main/webapp/jetty.png
new file mode 100644
index 00000000000..d579fffddfe
Binary files /dev/null and b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-simple-webapp/src/main/webapp/jetty.png differ
diff --git a/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-simple-webapp/src/main/webapp/jetty.webp b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-simple-webapp/src/main/webapp/jetty.webp
new file mode 100644
index 00000000000..2d1bfea3ef7
Binary files /dev/null and b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-simple-webapp/src/main/webapp/jetty.webp differ
diff --git a/jetty-ee8/jetty-ee8-demos/pom.xml b/jetty-ee8/jetty-ee8-demos/pom.xml
new file mode 100644
index 00000000000..6e30ab6b06c
--- /dev/null
+++ b/jetty-ee8/jetty-ee8-demos/pom.xml
@@ -0,0 +1,48 @@
+
+
+
+ org.eclipse.jetty.ee8
+ jetty-ee8
+ 12.0.0-SNAPSHOT
+
+
+ 4.0.0
+ org.eclipse.jetty.ee8.demos
+ jetty-ee8-demos
+ EE8 :: Jetty Demos :: Parent
+ pom
+
+
+ true
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+
+
+ bogus.*
+
+
+
+
+
+
+ jetty-ee8-demo-simple-webapp
+ jetty-ee8-demo-async-rest
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/jetty-ee8/jetty-ee8-home/pom.xml b/jetty-ee8/jetty-ee8-home/pom.xml
index f5d7dec50de..a6cb468edc5 100644
--- a/jetty-ee8/jetty-ee8-home/pom.xml
+++ b/jetty-ee8/jetty-ee8-home/pom.xml
@@ -501,14 +501,14 @@
-
-
-
-
-
-
-
-
+
+ org.eclipse.jetty.ee8.demos
+ jetty-ee8-demo-async-rest-webapp
+ ${project.version}
+ config
+ jar
+ true
+
@@ -517,14 +517,14 @@
-
-
-
-
-
-
-
-
+
+ org.eclipse.jetty.ee8.demos
+ jetty-ee8-demo-simple-webapp
+ ${project.version}
+ config
+ jar
+ true
+
diff --git a/jetty-ee8/pom.xml b/jetty-ee8/pom.xml
index d5ef008a2d7..c53a0848cb4 100644
--- a/jetty-ee8/pom.xml
+++ b/jetty-ee8/pom.xml
@@ -36,6 +36,7 @@
jetty-ee8-annotations
jetty-ee8-websocket
jetty-ee8-bom
+
jetty-ee8-demos
jetty-ee8-home
diff --git a/jetty-ee9/jetty-ee9-demos/jetty-ee9-demo-spec/pom.xml b/jetty-ee9/jetty-ee9-demos/jetty-ee9-demo-spec/pom.xml
index aa8a5ca8cdc..51c77cbd92d 100644
--- a/jetty-ee9/jetty-ee9-demos/jetty-ee9-demo-spec/pom.xml
+++ b/jetty-ee9/jetty-ee9-demos/jetty-ee9-demo-spec/pom.xml
@@ -7,7 +7,7 @@
12.0.0-SNAPSHOT
EE9 :: Jetty Demo :: Servlet Spec
-
jetty-e9-demo-spec
+
jetty-ee9-demo-spec
pom