Coexistence of JAX-RS 2.0 with JAX-RS 1.1
WebSphere Application Server traditional version 9 supports both Java API for RESTful Web Services (JAX-RS) 2.0 and JAX-RS 1.1 features. In version 9 and its later versions, we can switch among different JAX-RS providers.
The default JAX-RS provider on WAS traditional version 9 is Apache CXF-based JAX-RS 2.0. We can also switch to Apache Wink-based JAX-RS 1.1 either using command prompt or administrative console. Meanwhile, to help you bundle our own restful implementation in the application, the version 9 also provides support only for JAX-RS specification compresses.
Therefore, we can choose from the following JAX-RS providers based on our needs:
- JAX-RS 2.0
- Provides full support for JAX-RS 2.0.
- JAX-RS 1.1
- Provides full support for JAX-RS 1.1.
- 1.1 spec
- Provides support only for JAX-RS 1.1 specification compress. We need to package the JAX-RS 1.1 specification implementations in the applications.
- 2.0 spec
- Provides support only for JAX-RS 2.0 specification compress. We need to package the JAX-RS 1.1 specification implementations in the applications.
Subtopics
- Switching among different JAX-RS providers using command prompt
Use command prompt to list all the Java API for RESTful Web Services (JAX-RS) providers, identify, and modify the selected JAX-RS provider in WAS traditional V9.- Switching among different JAX-RS providers using administrative console
Use the administrative console to list all the Java API for RESTful Web Services (JAX-RS) providers, identify, and modify the selected JAX-RS provider.