Packaging the JAX-RS applications with web.xml and an Application subclass

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.218.224.226