private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery
Jetty in JBoss
The following are required to build and run Jetty in JBoss:
- Java 1.4 or 1.5
- Maven 2.0.4
- JBoss 4.0.5 (other versions may work but this is the version Jetty used for testing)
- Jboss-Jetty module in Jetty 6 - http://svn.codehaus.org/jetty/jetty/trunk/extras/jboss
Build instructions
After checking out JBoss-Jetty, go to the command line and cd to its home directory. Run "mvn clean install -Djboss.home=path_to_jboss" where "path_to_jboss" is the location of your JBoss installation. Be sure to specify this directory because maven will use this to obtain the jboss dependencies.
An alternate way to build it is to edit the pom.xml. Simply add this tag to the <properties>: <jboss.home>path_to_jboss</jboss.home>. Once this property is set in the pom.xml, one need only run "mvn clean install" on the JBoss-Jetty home dir.
Installation instructions
First, go to JBoss-home/server/default/deploy directory and delete the jbossweb-tomcat55.sar directory. Once the JBoss-Jetty project has been built, copy the jetty-version-jboss-jboss.version-jsp-2.0.sar file from the JBoss-Jetty-home/target sub directory to the JBoss-home/server/default/deploy directory.
Configuration instructions
By default, Jetty will be configured to:
- have a thread pool containing a minimum of 10 and a maximum of 250 threads
- a SelectChannelConnector on port 8080
This configuration is contained in the META-INF/jboss-service.xml file inside the sar.
In order to change the port, add other types of connectors, configure a request log, or change the thread pool, you need to un-pack the sar to a temporary directory, edit the META-INF/jboss-service.xml file, repack it and copy the modified sar to the JBoss deploy directory.
Versions Matrix
Jetty Version |
JBoss Version |
JVM Version |
Status |
|---|---|---|---|
6.1.0pre2 |
4.0.5.GA |
JDK 1.4 |
|