Skip to end of metadata
Go to start of metadata

A DeployableContainer implementation that can run and connect to a embedded (same JVM) Jetty 6.1 Servlet Container. The minimum recommended
version is Jetty 6.1.12, though you can use an earlier 6.1 version if you aren't using JNDI resources. Only select EE APIs are available, such as
JNDI and Servlet 2.5. This implementation has lifecycle support, so the container will be started and stopped as part of the test run.

Container Injection Support Matrix

@Resource @EJB @EJB (no-interface) @Inject (CDI) @Inject (MC) @PersistenceContext @PersistenceUnit
CDI support requires use of Weld Servlet.


Default Protocol: Servlet 2.5

Container Configuration Options

Name Type Default Description
bindHttpPort int 9090 The HTTP port the server should bind to.
bindAddress String localhost The host the server should be run on.
jettyPlus boolean true Activates the Jetty plus configuration to support JNDI resources (requires jetty-plus and jetty-naming artifacts on the classpath).
configurationClasses String null Specify your own Jetty configuration classes as a comma separated list.

Example of Maven profile setup

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.