Configure the JAX-RS application.
Previous: Define resources in JAX-RS web applications.
Parent
Implement JAX-RS web applications
Java EE 6 offers annotation scanning capabilities, allowing us to omit, or have a minimally defined, javax.ws.rs.core.Application subclass, We can avoid manually having to add every relevant JAX-RS class.
Alternatively, we can specify the JAX-RS servlet or filter, allowing us to take advantage of specific IBM JAX-RS behavior, such as developing a web application with a mix of JAX-RS resources and JSP files with the same URL patterns.
There is a JAX-RS V1.1 configuration method that supports the use of an optional web.xml file, allowing us to specify security constraints or roles.
Choose one of the following three methods to configure your JAX-RS application:
- Configure JAX-RS applications using JAX-RS 1.1 methods
- Configure web.xml for JAX-RS servlets
- Configure web.xml for JAX-RS filters
Subtopics
What to do next
Assemble JAX-RS web applications.
Related tasks
Configure JAX-RS web applications