Handling errors in a REST way is seemingly simple enough: upon requesting a resource, when an error occurs, a proper status code and a body that contains a parseable message and using the content-type of the request should be returned. The default error pages in Tomcat are ugly. Not only they expose too much of the server internals, they are only HTML formatted and making them a poor choice if a RESTful web service is deployed … read on »
All posts filed in “spring”
Using Spring 3.0 MVC for RESTful web services (rebuttal)
Update Mar.04 Thanks to @ewolff some of the points described below are now official feature requests. One (SPR-6928) is actually scheduled in Spring 3.1 (cool!). I've updated the post and added all open tickets. Please vote! This post is somewhat a response to InfoQ's Comparison of Spring MVC and JAX-RS. Recently I have completed a migration from a JAX-RS implementation of a web service to Spring 3.0 MVC annotation-based @Controllers. The aforementioned post on InfoQ was published … read on »
Upgrading to Spring 3.0.0.M3 and Spring Security 3.0.0.M1
A short two months back I posted an article describing how to upgrade to Spring 3.0 M2. Spring folks are releasing at breakneck speed and so I got busy again upgrading spincloud.com to Spring 3.0 M3 released at the beginning of May. Just yesterday (June 3rd) the team released Spring Security 3.0 M1 and I decided to roll this in Spincloud as well. Upgrading Spring Security from 2.0.4 to 3.0.0 M1 For Spring Security 3.0.0 M1 I'm … read on »
Evaluating EclipseLink 1.1
As I'm using the ubiquitous Hibernate 3.3 as the JPA 1.0 provider for Spincloud, I decided to try out another one. I had tried OpenJPA (spawned from Kodo JDO) when they only supported build-time bytecode enhancement and it was a pain to make it work. It worked all right but boy what a pain. There's now an agent to provide on-the-fly enhancement but I'll take transparent enhancement anytime. I've heard about EclipseLink before. The … read on »
Upgrading to Spring 3.0
In the spirit of beta I'm upgrading spincloud.com to Spring 3.0. I'm using version 2.5.6 currently but it's missing REST support and I had to use Carbonfive's REST library which worked like a charm. Now it's time to get back under Spring's fold and use their built-in REST support. Spring 3 opens the door to a lot of new features so I'm eager to try it. I'm using Maven2 to get the jars and Ant to … read on »


