What is the best JAX-RS library?
Asked Answered
E

1

6

I've been trying to choose which technology to use for a REST application and have found 4 candidates:

  1. Jersey - jersey.java.net
  2. Apache Wink - incubator.apache.org/wink
  3. RESTlet - www.restlet.org
  4. RESTeasy - jboss.org/resteasy

but haven't been able to differentiate between the four and choose one so, which is best? the criteria s being:
a. Stability \ maturity
b. Security
c. Ease of use
d. Support

Thanks!

Erysipelas answered 21/11, 2010 at 13:17 Comment(1)
i am aware of this: ibm.com/developerworks/web/library/wa-apachewink3 but a. it looks biased b. they cover different topics than what i asked (a-d)Erysipelas
H
7

Rather than comparing I can give a definite picture about Jersey on your concerns. Firstly I am using Jersey for some time now (from its inception actually). The reason I still stick to Jersey is -

  1. It is a matured project with a lot of test case and has been around for some time. I hardly found issues with Jersey and find it quite stable. I would say the project and its community are both matured enough to use it in production.
  2. We are using Spring Security 2/3 with Jersey so I guess anything could be used on it.
  3. To be honest I stick to JAX-RS stuffs as much as possible so I think its as easy as JAX-RS is. The only additional stuffs I use specific to Jersey is form data multipart, jersey client and jersey apache client. These are easy enough that I write a generic restful client for resources and a jersey client using client side HTTP Caching using HTTP Cache 4J. So I would say its pretty easy. Plus there are plenty (for my cases) tutorials, books, examples, blog posts, I hardly ever remember being stuck with anything.
  4. Well, one of the primary reasons for me to never thinking of moving away from Jersey is its support. Paul Sandoz, the project lead of Jersey is just awesome support personnel in the mailing lists. I have rarely seen a topic in the mailing list where Paul does not help. In addition there are other members in the mailing list who are very eager to help out. The mailing list support is very good. The release cycle is short ensuring that bug fixes are available in short time.

All in all I am pretty happy with Jersey.

Haggle answered 30/11, 2010 at 10:51 Comment(3)
I've also used Jersey since its inception. Version 1.0 was absolutely awesome, then Paul Sandoz got reassigned to another project... As a result, Jersey 2.0 is substantially worse than 1.0 and I'm now looking for a replacement.Ence
I have followed the discussions on the mailing lists and have heard of points from you (assuming you are cowwoc :)) and from Marek. I do understand that they leaped before they thought it through enough and then they got stuck in corporate politics on different grounds against different parties. In general I for server side Web Service development I hardly need anything beyond Jersey 1.13; on the Web Service consumption I have yet to face the need to use Java, JavaScript, Python are my preferences. Not to mention for simple enough project I do prefer django or JEE.Haggle
We'll need to find a replacement because they are about to drop support for Jersey 1.x. That means no more new features or bug fixes.Ence

© 2022 - 2024 — McMap. All rights reserved.