<!-- NOTE: The < > delimiters around urls are intentional. I don't want them to be clickable, I want them to stand out, but be included literally, in the text --> Who is Responsible for Integrating JSR-303 into Glassfish?Oracle employee Jane Young Most Recently Integrated Version of JSR-303 ImplementationThe binary manifestation of JSR-303 for Glassfish V3 is a single OSGi module jar, the maven repository information for which is listed below. As of 20111117, Glassfish svn trunk has 1.0.0.GA of the JSR-303 API, which corresponds to 4_2_0_Final of the JSR-303 RI. The corresponding svn urls follow.
Maven Artifact InformationBean Validator artifact consists of Validation API (JSR 303), Hibernate Validator and it's dependencies repackaged as OSGi bundle. The artifact is assembled in the HK2 workspace and promoted along with HK2 release. The artifact is published to the GlassFish Maven repository. The Maven GAV is as: <dependency> <groupId>org.glassfish.hk2.external</groupId> <artifactId>bean-validator</artifactId> <version> ... </version> <scope>provided</scope> </dependency> The corresponding binary artifacts from JBoss, the source code for which we use to build the preceding artifact follow. First is the API, second the RI, third the TCK, which we do not use at all for GlassFish integration. <dependency> <groupId>javax.validation<groupId> <artifactId>validation-api</artifactId> <version>1.0.0.GA</version> </dependency> <dependency> <groupId>org.hibernate<groupId> <artifactId>hibernate-validator</artifactId> <version>4.2.0.Final</version> </dependency> <dependency> <groupId>org.hibernate.jsr303.tck<groupId> <artifactId>jsr303-tck</artifactId> <version>1.0.6.GA</version> </dependency> Integration ProcessThere is a multi stage integration process. Stage 1 loosely consists of the following steps.
Stage 2 loosely consists of the following steps
Stage 3 loosely consists of the following steps
Integration TestingIntegration testing is currently a manual process and involves manually running the Quicklook tests, with SecurityManager enabled and without the SecurityManager enabled, as well as manually running the JSF 2.0 bean validator whose source code is at <https://mojarra.java.net/svn/mojarra/trunk/jsf-demo/bean-validator;>. Work is progressing on a more robust integration testing solution. First step is to discover exactly how Bean Validation is used in the Glassfish codebase. This find command will show all usages:find . -name .svn -prune -o -name "*.java" -exec grep javax.validation {} \; -print Quicklook TestingThe Quicklook coverege of Bean Validator consists of the following
|