tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Christo <_...@mail.com>
Subject JAX-RS + Bean Validation
Date Thu, 06 Feb 2014 12:38:23 GMT
Hi guys,

Wondering if anyone has managed to get the current version of openejb (4.6.0/4.6.1) working
with jax-rs 2.0 style validation? Or any workarounds using third party libs?

Basically I wanted to do something along the lines of:

@POST
@Path("/bounce")
@ValidateRequest
public Coffee bounce(@Valid Coffee coffee) {
	return coffee;
}

where the (coffee) bean sent, is automatically checked for validity.

Regards,

Chris
Mime
View raw message