tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: JAX-RS + Bean Validation
Date Thu, 06 Feb 2014 12:47:32 GMT
Hi

did you try adding:

org.apache.openejb.default.system.interceptors =
org.apache.openejb.bval.BeanValidationAppendixInterceptor in
conf/system.properties?
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-02-06 Chris Christo <_c.c@mail.com>:
> 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