diff --git a/jetty-ee8/jetty-ee8-bom/pom.xml b/jetty-ee8/jetty-ee8-bom/pom.xml index 43290da2b18..731fcbcf730 100644 --- a/jetty-ee8/jetty-ee8-bom/pom.xml +++ b/jetty-ee8/jetty-ee8-bom/pom.xml @@ -57,7 +57,7 @@ pom import - + org.eclipse.jetty.ee8 jetty-ee8-annotations diff --git a/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-jar/pom.xml b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-jar/pom.xml new file mode 100644 index 00000000000..785cd7c04aa --- /dev/null +++ b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-jar/pom.xml @@ -0,0 +1,33 @@ + + + org.eclipse.jetty.ee8.demos + jetty-ee8-demo-async-rest + 12.0.0-SNAPSHOT + + + 4.0.0 + jetty-ee8-demo-async-rest-jar + jar + EE8 :: Jetty Demo :: Async Rest :: Jar + + + jetty-ee9-demos/jetty-ee9-demo-async-rest-jar + ${project.parent.groupId}.async.rest + + + + + org.eclipse.jetty + jetty-client + + + org.eclipse.jetty + jetty-util-ajax + + + org.eclipse.jetty.toolchain + jetty-servlet-api + provided + + + diff --git a/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-server/pom.xml b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-server/pom.xml new file mode 100644 index 00000000000..72183934143 --- /dev/null +++ b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-server/pom.xml @@ -0,0 +1,31 @@ + + + org.eclipse.jetty.ee8.demos + jetty-ee8-demo-async-rest + 12.0.0-SNAPSHOT + + + 4.0.0 + jetty-ee8-demo-async-rest-server + jar + EE8 :: Jetty Demo :: Async Rest :: Server + + + jetty-ee9-demos/jetty-ee9-demo-async-rest/jetty-ee9-demo-async-rest-server + ${project.parent.groupId}.async.rest.server + + + + + org.eclipse.jetty.ee8 + jetty-ee8-webapp + + + + org.eclipse.jetty + jetty-slf4j-impl + ${project.version} + test + + + diff --git a/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/pom.xml b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/pom.xml new file mode 100644 index 00000000000..381e77f94fd --- /dev/null +++ b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/pom.xml @@ -0,0 +1,35 @@ + + + org.eclipse.jetty.ee8.demos + jetty-ee8-demo-async-rest + 12.0.0-SNAPSHOT + + + 4.0.0 + jetty-ee8-demo-async-rest-webapp + war + EE8 :: Jetty Demo :: Async Rest :: WebApp + + + + + + org.slf4j + slf4j-api + + + org.eclipse.jetty + jetty-slf4j-impl + compile + + + org.eclipse.jetty.ee8.demos + jetty-ee8-demo-async-rest-jar + + + org.eclipse.jetty.toolchain + jetty-servlet-api + provided + + + diff --git a/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/src/main/config/modules/demo.d/ee8-demo-async-rest.properties b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/src/main/config/modules/demo.d/ee8-demo-async-rest.properties new file mode 100644 index 00000000000..01902893d61 --- /dev/null +++ b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/src/main/config/modules/demo.d/ee8-demo-async-rest.properties @@ -0,0 +1 @@ +environment: ee8 diff --git a/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/src/main/config/modules/ee8-demo-async-rest.mod b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/src/main/config/modules/ee8-demo-async-rest.mod new file mode 100644 index 00000000000..f3d78cfc181 --- /dev/null +++ b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/src/main/config/modules/ee8-demo-async-rest.mod @@ -0,0 +1,18 @@ +# DO NOT EDIT - See: https://www.eclipse.org/jetty/documentation/current/startup-modules.html + +[description] +Demo Async Rest webapp + +[environment] +ee8 + +[tags] +demo +webapp + +[depends] +ee8-deploy + +[files] +basehome:modules/demo.d/ee8-demo-async-rest.properties|webapps/ee8-demo-async-rest.properties +maven://org.eclipse.jetty.ee8.demos/jetty-ee8-demo-async-rest-webapp/${jetty.version}/war|webapps/ee8-demo-async-rest.war diff --git a/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/src/main/webapp/META-INF/MANIFEST.MF b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/src/main/webapp/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..5e9495128c0 --- /dev/null +++ b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/src/main/webapp/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Class-Path: + diff --git a/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/src/main/webapp/WEB-INF/jetty-web.xml b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/src/main/webapp/WEB-INF/jetty-web.xml new file mode 100644 index 00000000000..216a4fb9a43 --- /dev/null +++ b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/src/main/webapp/WEB-INF/jetty-web.xml @@ -0,0 +1,15 @@ + + + + + + + + The ee8-demo-async-rest webapp is deployed. DO NOT USE IN PRODUCTION! + + diff --git a/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/src/main/webapp/WEB-INF/web.xml b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 00000000000..dfeb9a239f7 --- /dev/null +++ b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,9 @@ + + + + EE8 Demo Async REST WebApp + + diff --git a/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/src/main/webapp/demo.css b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/src/main/webapp/demo.css new file mode 100644 index 00000000000..f2b91d3365d --- /dev/null +++ b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/src/main/webapp/demo.css @@ -0,0 +1,83 @@ +body +{ + font-family: Arial, Verdana, Helvetica, sans-serif; +} + +.topnav +{ + overflow: hidden; + padding: 10px; + border: 1px solid #f6815c; + border-radius: 10px; + text-align: right; +} + +.menu +{ + margin-left: 3em; +} + +.content +{ + padding: 10px; +} + +.footer +{ + padding: 10px; + border-radius: 10px; + border: 1px solid #f6815c; +} + +.test +{ + background-color: #0099cc; + color: white; + padding: 10px 15px; + border: none; + font-size: 12pt; + border-radius: 10px; + box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 3px 10px 0 rgba(0,0,0,0.19); +} + +.test:hover +{ + background-color: #f6815c; + color: white; +} + +A:link +{ + color: #0099cc; + text-decoration: none; + font-weight: normal; + font-size: 11pt; + font-family:sans-serif; +} + +A:visited +{ + color: #0099cc; + text-decoration: none; + font-weight: normal; + font-size: 11pt; + font-family:sans-serif; +} + +A:hover +{ + color: #ff6600; + text-decoration: none; + font-weight: normal; + font-size: 11pt; + font-family:sans-serif; +} + +A:active +{ + color: #0099cc; + text-decoration: none; + font-weight: normal; + font-size: 11pt; + font-family:sans-serif; +} diff --git a/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/src/main/webapp/index.html b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/src/main/webapp/index.html new file mode 100644 index 00000000000..262cf633e9d --- /dev/null +++ b/jetty-ee8/jetty-ee8-demos/jetty-ee8-demo-async-rest/jetty-ee8-demo-async-rest-webapp/src/main/webapp/index.html @@ -0,0 +1,62 @@ + + + + + + +
+ Demo Home + Source + Jetty Project Home + Documentation + Commercial Support +
+ +
+
+ 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