InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

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

Posted by Srini Penchikala on May 08, 2008

Sections
Development,
Operations & Infrastructure
Topics
Bean Validation ,
Fusion Middleware ,
Java
Tags
JSR 303 ,
Java One ,
JavaOne 2008 ,
Validation

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.

Srini Penchikala currently works as Security Architect and has 17 yrs of experience in software product management.

No comments

Watch Thread Reply

Educational Content

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.