user5692793
user5692793

Reputation: 48

Java Restful Services - Without JaxB

I'm trying to write restful JSON webservices. I have implemented a few using CXF, however with CXF, JAX-RS the dependencies are bloating up the single page web application. Is there any easy way to compose restful services without any of JAX-RS and in particular without using JAXB based marshalling/unmarshalling.

Upvotes: 0

Views: 203

Answers (1)

emsworth
emsworth

Reputation: 1171

If CXF is providing more capabilities than you need, look into Jersey or Restlet, both of which may provide a library that specifically suits your needs. Note that these are going to implement the JAX-RS specification.

Other guidance may depend on your environment. You very well could write a servlet and handle the JSON yourself, see here for a discussion: Reasons for not directly writing Servlets for creating a REST API

Upvotes: 1

Related Questions