CXF JAX-RS endpoints and clients can be configured declaratively (using Spring or web.xml only) and programmatically.