Submitted by jasonday on Sun, 09/11/2011 - 10:53pm
After reading Having “fun” with JSR-303 Beans Validation and OSGi + Spring DM, I thought I would attempt to bootstrap JSR-303 Beans Validation in Spring in a Sling OSGi container. Unfortunately, a few changes have been made to the Hibernate API since Magnus' articles, so a few updates to his version are required. Additionally, I want to enable JSR-303 Beans Validation in the Sling/Spring MVC environment I previously wrote about. This presented a few additional challenges, so I'll also walk through the steps to enable JSR-303 Beans Validation in a Spring MVC application context running within a Sling OSGi container so that you can use JSR-303 Beans Validation as described in the Spring documentation.