Java Servlet Containers
Jetty / Tomcat
Diego Pacheco
@diego_pacheco
ā Cat's Father
ā Principal Software Architect
ā Agile Coach
ā SOA Expert
ā DevOps Practitioner
ā Speaker
ā Author
diegopacheco
http://diego-pacheco.blogspot.com.br/
https://goo.gl/eEqvzl
About me...
Apache Tomcat
ā Java Based
ā Http Web Server
ā JSP Servlet Container
ā http://tomcat.apache.org/ and
http://tomcat.apache.org/download-80.cgi
ā Easy to Use
Directory Structure
Starting the server
http://localhost:8080/ http://localhost:8080/manager/status
Jenkins Demo
http://mirrors.jenkins.io/war-stable/latest/jenkins.war
Jetty
ā Http Server
ā Servlet Container
ā Faster than tomcat
ā Easy to embed
ā http://www.eclipse.org/jetty/ and
http://central.maven.org/maven2/org/eclipse/jetty/jetty-dist
ribution/9.4.5.v20170502/jetty-distribution-9.4.5.v20170502.
zip
Versions
Directory Structure
Starting Jetty
java -jar start.jar
http://localhost:8080/
Jenkins Demo
http://mirrors.jenkins.io/war-stable/latest/jenkins.war
Jenkins Demo
Jenkins Demo
touch webapps/jenkins.xml
https://gist.github.com/diegopacheco/cc5a39352267e75b92c
04a60ad4eb276
Code
ā Make the Spring or Guice Application Web
ā Have at least 1 Servlet that does all the work
ā Deploy in Tomcat
ā Deploy in Jetty
Java Servlet Containers
Jetty / Tomcat
Diego Pacheco

Jetty and Tomcat