if your bean can be a CDI bean then it will be and benefit from bean
validation-cdi integration:

https://github.com/rmannibucau/demo-jaxrs-bval/blob/master/src/main/java/com/github/rmannibucau/demo/jaxrsbval/ValidMyParams.java
works as expected:
https://github.com/rmannibucau/demo-jaxrs-bval/blob/master/src/main/java/com/github/rmannibucau/demo/jaxrsbval/ValidMyParams.java


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2015-12-21 18:02 GMT+01:00 sgjava <[email protected]>:

> I'm using simple DTOs that are sent from a REST client, where would CDI
> come
> into play in this scenario? There's no opportunity to @Inject them.
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/TomEE-7-bean-validation-tp4677232p4677278.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Reply via email to