Enterprise Java for Linux HOWTO 
3.4 Jetty HTTP Server and Servlet Container 
Background 
Jetty is an Open Source HTTP Servlet Server written in 100% Java.  It is both a full featured HTTP/1.1 server
and a Servlet Container.  It is designed to be light weight, high performance, embeddable, extensible  and
flexible, thus making it an ideal platform for serving dynamic HTTP  requests from any Java application. 
Jetty can be used as a stand-alone HTTP server and servlet container or  it can be embedded in another java
application (eg. the JBoss EJB container  is using Jetty as it s prefered server and container solution). 
As a combined server and servlet container, both these functions run  efficiently in a single unix process.
Installation and configuration  is also simpler as a single application. 
Download
The Jetty HTTP Server and Servlet container may be downloaded via: 
http://jetty.mortbay.org
. 
Jetty is distributed under the artistic license, full source is included and it can be used and distributed
commercially. 
Installation 
The package is distributed as a gzipped tar file, which can be unpacked with: 
gunzip < Jetty-x.x.x.tgz | tar xf - 
Which will create a Jetty-x.x.x directory where x.x.x is the version  number. 
To run the demo server: 
export JETTY_HOME=
export JAVA_HOME=
$JETTY_HOME/bin/jetty.sh run 
Then to see the Jetty demo and tutorial point a browser at 
 http://localhost:8080
. 
Jetty can also be installed and run via JMX or as part of the JBoss distributions.  See
http://jetty.mortbay.org
 or the README.TXT file for more details. 
4.
 How to Setup Java Servlet Support 
There are several Web Server plug-ins and Application Servers available for Linux that provide support for
Java Servlets.  These include: 
Allaire JRun
  
 3.4 Jetty HTTP Server and Servlet Container 
16






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java web hosting

 

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved