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
JavaOne 2008 ,
Validation ,
Java One ,
JSR 303

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

Watch Thread Reply

Educational Content

Bindings, Platforms, and Innovation

This presentation focuses on the Internet and separating myth from fact, history from the future, and the mundane from the imaginative. Bob Frankston presents a vision of what could and should be.

Orchestrating Long Running Activities with JBoss / JBPM

This article explores the use of JBoss and jBPM to implement design solutions that effectively address the issue of orchestrating long running activities.

Neo4j - The Benefits of Graph Databases

This presentation covers the use of graph databases as an optimal solution for data that is difficult to fit in static tables, rapidly evolving data or data that has a lot of optional attributes.

Realistic about Risk: Software development with Real Options

This session introduces Real Options and shows how it can help in running your project. Real Options is a decision-making process that can be used to manage risk.

Communication Flexibility Using Bindings

This article discusses the use of bindings on services and references (including the instance of non-configured bindings) as the means to implement SCA communications in a Web and SOA environment.

Writing DSLs in Groovy

After a short introduction to DSLs, Scott Davis plays with the keyboard showing how to approach the creation of a DSL by typing working snippets of Groovy code that get executed.

Scaling Agile with C/ALM (Collaborative Application Lifecycle Management)

IBM Rational and InfoQ present, Scaling Agile with C/ALM, an eBook showing organizations how to become “finely tuned software delivery machines” by enabling team integration and scaling.

Concurrent Programming with Microsoft F#

Amanda Laucher presents a real life enterprise application written in F#. She shows actual code snippets, explaining design decisions and suggesting how to use some of the F# constructs.