InfoQ

News

JavaOne 2008 Day 2 - Bean Validation Presentation and Oracle Fusion Middleware Preview

Posted by Srini Penchikala on May 08, 2008 02:30 PM

Community
Java
Topics
Bean Validation,
Fusion Middleware
Tags
Validation,
JSR 303,
Java One,
JavaOne 2008

On day 2 of JavaOne 2008 conference, Emmanuel Bernard talked about Bean Validation framework (JSR 303). Emmanuel said that a typical JEE application requires the constraints applied in database, data access, business, and presentation layers and the constraint implementation logic is usually duplicated in all these layers. The goal of JSR 303 spec is to provide a uniform and layer agnostic way to express and implement a constraint. It also provides a Constraint Repository API to expose the list of constraints for a specific JavaBean. The constraints are defined in the bean (domain object) so the validation logic is close to the domain model. They can be added to bean, field, getter method, or even a graph of objects. He explained the "cascaded constraint checking" feature used to validate an object graph.

Developers can also define their own constraints by writing a custom annotation and decorating it with @ConstraintValidator tag. Emmanuel said that JPA 2.0 framework could use the bean validation framework to generate database constraints based on the bean constraint annotations. Other frameworks like Web Beans, JSF 2.0 and AJAX libraries could also use it for the validation requirements. JSR 303 specification is based on Hibernate Validator framework. It will be released as part of Java EE 6 specification.

Earlier in the day during the keynote session, Thomas Kurian and Oracle developer team previewed the upcoming features of Oracle Fusion Middleware 11g which include Complex Event Processing and Business Activity Monitoring in their SOA Suite, WebCenter Suite for developing Enterprise 2.0 and Social computing applications. The developer team also demonstrated the grid computing support that BEA WebLogic and Coherence Grid products offer to the enterprise developers running their applications in a virtualized application server environment. They also showed JRockit administration console and how to configure the JVM to perform deterministic Garbage Collection.

No comments

Reply

Exclusive Content

Tapestry for Nonbelievers

A new article by I. Drobiazko and R. Zubairov introduces v. 5 of the Apache Tapestry component-oriented web framework. The tutorial shows how to create a component and covers IoC in Tapestry and Ajax.

Pete Lacey on REST and Web Services

In this interview, Burton Group consultant Pete Lacey talks to Stefan Tilkov about his disillusionment with SOAP, his opinion on REST, and addresses some of the perceived shortcomings REST vs. WS-*.

Business Natural Languages Development in Ruby

Jay Fields presents his concept of Business Natural Languages - a type of Domain Specific Languages geared towards being readable by domain experts.

Distributed Version Control Systems: A Not-So-Quick Guide Through

Adoption and interest for Distributed Version Control Systems is constantly rising. We will introduce the concept of DVCS and have a look at 3 actors in the area: git, Mercurial and Bazaar.

Segundo Velasquez and Agile as Seen Through the Customer's Eyes

Deborah Hartmann interviewed Segundo Velasquez about his experience as customer with an Agile team during the initial phase of software design of a product.

Fine Grained Versioning with ClickOnce

David Cooksey shows how to fine grained versioning to a ClickOnce deployment using an HttpHandler written with ASP.NET, making partial rollouts to a test audience much easier.

Implementing Manual Activities in Windows Workflow

Windows workflow (WF) is an excellent framework for implementing business processes, but lacks support for human activities. This article describes a completely generic approach for changing this.

Markus Voelter about Software Architecture Documentation

In this interview taken during OOPSLA 2007, Markus Voelter talks about the importance of documenting the software architecture, and gives some good and also bad examples on how it could be done.