Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

JAX-RS 2 + Bean Validation 1.1

DZone's Guide to

JAX-RS 2 + Bean Validation 1.1

· Java Zone
Free Resource

Are you joining the containers revolution? Start leveraging container management using Platform9's ultimate guide to Kubernetes deployment.

 

As many of you know, JAX-RS 2 is one of the most important parts of Java EE 7. One key enhancement in JAX-RS 2 that doesn't seem to get much attention is it's integration with Bean Validation 1.1 (specifically method validation). The key significance of the enhancement is that it allows for highly declarative data validation for edge client interfaces (in fact the method validation feature introduced in Bean Validation 1.1 is valuable for WebSocket or local/EJB services for this same reason). Bhakti Mehta explains JAX-RS 2 and Bean Validation 1.1 integration well inthis blog post. In addition to covering JAX-RS 2, she also discusses how Bean Validation can be used with JAX-RS 1.1. You should also check out the following excellent video by celebrated Java champion Adam Bean showing JAX-RS 2 and Bean Validation 1.1 in action using live coding with NetBeans and GlassFish:

The documentation for Jersey, the JAX-RS 2 reference implementation included in GlassFish and WebLogic, also has anexcellent section on the new feature.


Moving towards a private or Hybrid cloud infrastructure model? Get started with our OpenStack Deployment Models guide to learn the proper deployment model for your organization.

Topics:

Published at DZone with permission of Reza Rahman, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}