I'm aware I must be missing some really basic point. The following resource method:
@GET
@Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
public TestObject getObj(@QueryParam("m") String m,
@Min(30) @NotNull @QueryParam("d") Double d) {
return new TestObject(m,m,d);
}
works as expected in Glassfish4 (i.e returns a 400 Bad Request), but in TomEE 7.0.0-M1 (jee7) it ignores validation annotations, and responds with 200 OK. I tried setting the property (although in TomEE 7 it is set to be enabled by default), still nothing.
org.apache.openejb.default.system.interceptors = org.apache.openejb.bval.BeanValidationAppendixInterceptor
What am I missing here?