The Servlet 3.0 Protocol implementation is used by most EE6 compliant containers. It will attempt to add a web-fragment to the deployment.
Packaging rules
@Deployment |
Output |
Action |
JavaArchive |
WebArchive |
Creates a new WebArchive, adds @Deployment and Auxiliary Archives as libraries. |
WebArchive |
WebArchive |
Adds @Deployment and Auxiliary Archives as libraries. |
EnterpriseArchive |
EnterpriseArchive |
If a single WebArchive is found, the same as for WebArchive is done. If no WebArchives are found a new one is created, adds @Deployment and Auxiliary Archives as libraries. If multiple WebArchives are found, a exception is thrown. |
Protocol Configuration Options
Name |
Type |
Default |
Description |
host |
String |
none |
Used to override the Deployments default hostname. |
port |
int |
none |
Used to override the Deployments default http port. |
contextRoot |
String |
none |
Used to override the Deployments default contextRoot. |