Sometimes, you may want to use both Application and web.xml for your JAX-RS application. This deployment model will be the best fit for the following scenarios, where you will use web.xml:
- To configure security for the application
- To specify some context parameters for the application
- To configure some container-specific parameters for the application
Depending on the capabilities of the target server, configuration entries in web.xml vary. This will be explained in the following sections.