Jetty has moved!
Jetty is a project at the Eclipse Foundation.
Contact the core Jetty developers at
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
Skip to end of metadata
Go to start of metadata
How do I serve webapp A only from port A and webapp B only from port B?
You need two org.mortbay.jetty.Server instances for this. Instance A will have listener A and webapp A defined, and instance B will have webapp B and listener B defined.
Here's a small example:
You run both Server instances in the same JVM by providing them both on the runline:
java -jar start.jar jettyA.xml jettyB.xml
Of course, you could also start two separate jetty instances, one with
jettyA.xml and the other with
Back to FAQ