0

I'm developing an API using Java.

The requirement is receive request and response in XML format.

I don't have much experiences about this before.

So I want to ask a best practice to build this system.

Would you please help me?

Samuel
  • 49
  • 1
  • 6

1 Answers1

0

You can go with Restful Frameworks:

  1. Apache CXF
  2. Jersey (popular)
  3. Restlet (pioneer of JAX-RS)
  4. RESTEasy

Following is the comparison of above frameworks:

http://architects.dzone.com/articles/apache-cxf-vs-apache-axis-vs

Out of 4 above the most popular are:

  1. Apache CXF
  2. Jersey

Lets have a look at both on following link

Java REST implementation: Jersey vs CXF

But on the other hand people also recommend to use SPRING MVC if we are already familiar with Spring as it has full support for REST.

Following are the two very helpful articles on SPRING MVC VS JERSEY

http://www.infoq.com/articles/springmvc_jsx-rs

http://spring.io/blog/2009/03/08/rest-in-spring-3-mvc/

Moreover, we can integrate Spring and JERSEY together as well

Some more information:

Jersey:

Pros: Standard API (JAX-RS) Cons: MVC support is less richer than Spring MVC. Spring:

Pros: Many features, many documents, active community. Cons: Many rules to learn.

Community
  • 1
  • 1
Ramzan Zafar
  • 1,562
  • 2
  • 17
  • 18