Jetty Category

How to deploy a war file to jetty

Like what we often do in tomcat, we can still static or hot deploy war file(packed or unpacked) to Jetty container, this tutorial will demonstrate how to deploy a war file to jetty?

How to change Jetty default port

In Jetty, almost all of configuration information is by default maintained in file jetty.xml, this file is located under $JETTY_HOME/etc/. The  default port in jetty is 8080.

How to Download and Install Jetty

How to Download and Install Jetty. Jetty Quick Start Jetty is a full-featured, standards based, embeddable, asynchronous, enterprise scalable Java components. This tutorial provides a quick instructions for downloading, installing, and running the binary version of Jetty 6. Download Jetty Jetty Available Distribution is from Codehaus and Eclipse, currently the latest Jetty version is 6.1.25. You can […]

Jetty VS Tomcat Performance Comparison

Jetty VS Tomcat Overview Jetty and Tomcat are open servlet containers, both of them support HTTP server, HTTP client and javax.servlet container. In this article, we will quick view the difference between Jetty and Tomcat, and give the generic idea about which is the better one. You may think it is not make sense to […]

Setting up Jetty JNDI Datasource Binding

This tutorial is to set up Jetty JNDI datasource for DBCP(Connection pooling), at beginning, please copy Mysql driver library(we used MYSQL as  database) and required DBCP jars to the directory “lib” of the jetty rootDir. 3 main DBCP jars are required as below.

How do I Start and Stop Jetty Server from Ant

To start and stop Jetty from Ant command line, we can use the Ant Jetty plugin jetty-ant in the codehouse trunk, it is a new plugin available in the /extras/ant location, which makes it possible to start Jetty web server directly from the Ant build script, and, actually, to embed the Jetty web server inside […]