1.

How can the JAX-RS applications be configured?

Answer»

JAX-RS APPLICATIONS have the root resource classes packaged in a WAR file. There are 2 means of configuring JAX-RS applications.

  1. Use @ApplicationPath annotation in a subclass of javax.ws.rs.core.Application that is packaged in the WAR file.
  2. Use the <servlet-mapping> TAG inside the web.xml of the WAR. web.xml is the deployment descriptor of the application where the mappings to the SERVLETS can be DEFINED.


Discussion

No Comment Found