tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1614743 - /tomee/tomee/trunk/examples/bean-validation-design-by-contract/README.md
Date Wed, 30 Jul 2014 19:07:09 GMT
Author: rmannibucau
Date: Wed Jul 30 19:07:09 2014
New Revision: 1614743

URL: http://svn.apache.org/r1614743
Log:
updating readme

Modified:
    tomee/tomee/trunk/examples/bean-validation-design-by-contract/README.md

Modified: tomee/tomee/trunk/examples/bean-validation-design-by-contract/README.md
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/bean-validation-design-by-contract/README.md?rev=1614743&r1=1614742&r2=1614743&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/bean-validation-design-by-contract/README.md (original)
+++ tomee/tomee/trunk/examples/bean-validation-design-by-contract/README.md Wed Jul 30 19:07:09
2014
@@ -18,16 +18,10 @@ the minimum centimeters a sport man shou
 
 # Usage
 
-To use this feature you have to add the BeanValidationAppendixInterceptor interceptor.
-
-In unit test simply put a properties in your context properties:
-
-    properties.setProperty(BeanContext.USER_INTERCEPTOR_KEY, BeanValidationAppendixInterceptor.class.getName());
-
-In a production environment or in tomcat add the properties in conf/system.properties for
example:
-
-   org.apache.openejb.default.system.interceptors = org.apache.openejb.bval.BeanValidationAppendixInterceptor
+TomEE and OpenEJB do not provide anymore `BeanValidationAppendixInterceptor` since
+Bean Validation 1.1 does it (with a slighly different usage but the exact same feature).
 
+So basically you don't need to configure anything to use it.
 # Errors
 
 If a parameter is not validated an exception is thrown, it is an EJBException wrapping a
ConstraintViolationException:



Mime
View raw message