|
Sponsored Links
Resources
Enterprise Java Research Library
Get Java white papers, product information, case studies and webcasts
|
News
News
News
|
Messages: 3
Messages: 3
Messages: 3
Printer friendly
Printer friendly
Printer friendly
Post reply
Post reply
Post reply
XML
XML
XML
|
 |
Java REST Frameworks: Jersey and CXF
Per Daniel Rubio: If you've realized RESTfull web services offer a pragmatic approach to exposing business logic, but still haven't decided which framework to use for development. Matt Raible writes about his experience using Java REST frameworks, including Jersey and CXF, as well as the web services management engine Enunciate.
Read Matt Raible's post 'My Experience with Java REST Frameworks (specifically Jersey and CXF)':
http://raibledesigns.com/rd/entry/my_experience_with_java_rest
|
|
Message #329078
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
Re: Java REST Frameworks: Jersey and CXF
I'm a couple of days away from deploying a Jersey based solution to production. I use JiBX to map my objects to and from XML. It's super easy to do this.
My only issues with Jersey/JAX-RS were with some cases of error handling. For example, if you have a parameter defined as an int or integer in the method and the client provides a value that cannot be converted to int, I haven't found an easy way to provide a friendly error message (you can make all your parameters string to mitigate this.) Likewise, if the client goofs up the url such that Jersey can't figure out where the request should go, it returns a horrible "right-hand-rule" exception message. For example, if you specify your path with a '/' on the end and the client omits it, they get a message. A number of times, I was told my service was down because of this error message.
One problem that had was that when I ran this in a local Jetty server, Jersey was able to bootstrap all the providers and services just fine but on WAS, it wouldn't look inside the jars for providers. This isn't that big of a deal but I would have liked to know how things needed to be packaged ahead of time so I didn't have to figure it out at the most inconvenient moment possible.
|
|
Message #329083
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
RESTEasy
*shameless plug*
RESTEasy is also a very popular JAX-RS implementation with a strong community and many well known companies using it in production. We have a nice client proxy framework, loads of different format support, client and server side caching options, and async HTTP abstractions, interceptors, decorators, Guice, Spring, and EJB integration. There's also an O'Reilly Book, RESTFul Java with JAX-RS, by me, that uses RESTEasy for all its examples. (Although the examples will probably port very easily to other implementations).
Also, I know Restlet has a JAX-RS implementation too. Thats another one you might want to check out.
-- Bill Burke JBoss, a division of Red Hat http://jboss.org/resteasy http://bill.burkecentral.com
|
|
Message #329103
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
Re: RESTEasy
*shameless plug*
RESTEasy is also a very popular JAX-RS implementation with a strong community and many well known companies using it in production.
+1 for RESTEasy, I have just been evaluating REST frameworks and while there is a tonne of overlap due obviously to the JCP, I found RESTEasy to be the most logical to set up and use and it works great, and most importantly (for me at least) it works great as a standalone library outside of JBoss.
It is brilliant to implement JSON or FIS with just an additional maven dep and an annotation. Performance seems very good too.
So for what it is worth, great work Bill and team :o)
|
|
 |
New content on TheServerSide.comNew content on TheServerSide.comNew content on TheServerSide.com |
 |
 |
Now that Oracle is absorbing Sun Microsystems, there mixed views on what should come of the Java Community Process (JCP). While some say Oracle should become the new steward of Java and keep the JCP much as it was, others argue that it may be time to open-source this widespread language.
(November 24, Article)
Reza Rahman explores the features of the proposed JSR 299, Contexts and Dependency Injection for Java EE (CDI). When approved, it promises to be a key feature of Java EE 6.
(November 2, Article)
SAML is an XML-based standard for exchanging authentication and authorization data between security domains. The single most important problem that SAML was created to solve is the Web browser Single Sign-On problem. Many organizations are debating whether to stay with version 1.1 or move to 2.0. This article makes observations about both options.
(September 28, Article)
Joe Ottinger takes a look at how people learn, and applies it to the practice of programming. He notes that understanding how people learn is an essential part of working in a programming team.
(September 22, Article)
Stephen Maryka gave us an article about the Asynchronous Web and posed a number of questions that get examined like an approach to delivering Asynchronous Web capabilities through extensions to existing Java EE technologies.
(July 14, Article)
JavaServer Faces Flex goal is to provide users capability in creating standard Flex components, part of flexSDK which is open sourced through MPL license, as normal JSF components. This article by Ji Hoon Kim will provide an overview of creating a simple multilingual JSF page consisting of JSF Flex tags.
(June 29, Article)
In this session Jeff explores the key characteristics of successful SOA projects. He covers some of the patterns, and anti-patterns, tool sets, and strategies that he himself learned the hard way. Last, he provides a strategy and blueprint for achieving a high likelihood of success in your SOA project.
(June 23, Tech Talk)
Ari Zilka, CTO of Terracotta, Inc., talks about the new features in Terracotta 3.1, announced during JavaOne and available now.
(June 15, Tech Talk)
In this Tech Talk, Josh Long explores an integration challenge using Spring Integration and walks through the implementation, employing and expanding on the basic patterns of Enterprise Application Integration to tie together components into a function integration solution, and then demonstrates how Spring Integration helps address the integration requirements.
(June 15, Tech Talk)
In this Tech Talk, David Geary teaches you: The basics of Google Web Toolkit; How to implement Ajax-enabled applications in Java; Internationalization; Hooking into the browser history mechanism; Remote procedure calls.
(June 4, Tech Talk)
Jon Kern discusses the best architecture/technical solutions and ensure that they are repeated by all developers. By tackling the architecture up-front in a serial manner, subsequent parallel development will be much more manageable and predictable.
(May 28, Tech Talk)
This keynote describes the frustrations of modern knowledge workers in their quest to actually get some work done, and solutions for how to guard yourself against all those distractions. Neal Ford talks about environments, coding, acceleration, automation, and avoiding repetition as ways to defeat the misguided attempts to sap your ability to produce good work.
(May 26, Tech Talk)
Gil demonstrates how new, aggressive uses of already abundant compute capacity by common applications offer competitive value for application designers.
(May 21, Tech Talk)
Chris Keene introduces WaveMaker as a new way to automate the ability to generate Hibernate classes in order to more quickly bring OR mapping into an application.
(May 19, Article)
Mastering EJB was one of the original and most influential EJB books in the industry. Mastering EJB III now returns with two new expert co-authors, updated for EJB 2.1 and 30% new chapters including security, integration, best practices, open source, and more.
(Book PDF Download)
The Application Server Matrix is a detailed listing of J2EE vendors and their application server products, with information on latest version numbers, J2EE spec support and licensing, pricing, platform support, and links to product downloads and reviews.
(Application Server Comparison Matrix)
|
|