Comparison Jersey and Apache CXF RESTful webservices
License Jersey CDDL 1.1 GPL 2 with CPE et/ et/ Apache CXF Apache License 2.0 e.org/licenses/ e.org/licenses/
Documentation Jersey Good Wiki documentation display/Jersey/Overv iew+of+JAX- RS+1.0+Features display/Jersey/Overv iew+of+JAX- RS+1.0+Features display/Jersey/Main display/Jersey/Main Apache CXF Large set of examples for REST services g/docs/index.html g/docs/index.html g/docs/jax-rs.html g/docs/jax-rs.html
Maven support Jersey Yes et/nonav/docume ntation/latest/user- guide.html#chapt er_deps et/nonav/docume ntation/latest/user- guide.html#chapt er_deps Apache CXF Yes org/docs/jax- rs.html#JAX-RS- Mavendependenci es org/docs/jax- rs.html#JAX-RS- Mavendependenci es
OSGi support Jersey no Apache CXF Yes Subproject „Distributed OSGi“ org/distributed- osgi.html org/distributed- osgi.html
Client API Jersey Only http centric Proxy based in experimental state using own annotations related to r“ nav/documentation/lat est/experimental.html nav/documentation/lat est/experimental.html Apache CXF Http centric and Proxy based > Same interface / class as server can be used g/docs/jax-rs-client- api.html g/docs/jax-rs-client- api.html
Generated client code Jersey ??? Apache CXF ???
Spring framework integration (Serverside) Jersey Yes Services are autodetected by component-scan om/enterprisetechtip s/entry/jersey_and_s pring#modpom om/enterprisetechtip s/entry/jersey_and_s pring#modpom Apache CXF Yes But services have to be declared explicitly Client: ocs/jax-rs-client- api.html#JAX- RSClientAPI- ConfiguringproxiesinSpri ng ocs/jax-rs-client- api.html#JAX- RSClientAPI- ConfiguringproxiesinSpri ng
Spring framework integration (client) Jersey no com/enterprisetec htips/entry/jersey_a nd_spring#modpo m com/enterprisetec htips/entry/jersey_a nd_spring#modpo m Apache CXF Yes g/docs/jax-rs-client- api.html#JAX- RSClientAPI- ConfiguringproxiesinS pring g/docs/jax-rs-client- api.html#JAX- RSClientAPI- ConfiguringproxiesinS pring
Databinding Jersey XML JAXB interoperable with Apache CXFs XML translation JSON not interoperable with Apache CXFs JSON translation Apache CXF XML JAXB interoperable with Jerseys XML transformation XMLBeans Aegis JSON not interoperable with Jerseys JSON translation Does not support list and other collection interfaces s/jax-rs-data-bindings.html s/jax-rs-data-bindings.html
Security Jersey OAuth m/identity/reference/tec hart/restwebservices.html m/identity/reference/tec hart/restwebservices.html com/?p=325 com/?p=325 HTTPS av/documentation/latest/ user-guide.html#d4e784 av/documentation/latest/ user-guide.html#d4e784 Apache CXF HTTPS org/docs/secure- jax-rs-services.html org/docs/secure- jax-rs-services.html
Webservice support Jersey no Apache CXF Yes g/docs/jax-rs-and- jax-ws.html g/docs/jax-rs-and- jax-ws.html (Apache CXF allows to integrate into a Enterprise Service Bus concept)
Performance Jersey-Server + Apache CXF client