This topic applies to WebSphere Application Server Liberty V8.5.5.9 and earlier. For the latest Liberty topics, see the WebSphere Application Server Liberty documentation.
Bean Validation 1.0
The Bean Validation 1.0 specification provides an annotation based model for validating JavaBeans. It can be used to assert and maintain the integrity of data as it travels through an application.
Enabling this feature
To enable the Bean Validation 1.0 feature, add the following element declaration inside the featureManager element in your
server.xml file:
<feature>beanValidation-1.0</feature>
Developing a feature that depends on this feature
If you are developing a feature that depends on the Bean Validation 1.0 feature, include the following item in the Subsystem-Content header in the feature manifest file for your new feature:
com.ibm.websphere.appserver.beanValidation-1.0; type="osgi.subsystem.feature"
Features that enable this feature
Standard API packages provided by this feature
- javax.validation
- javax.validation.bootstrap
- javax.validation.constraints
- javax.validation.groups
- javax.validation.metadata
- javax.validation.spi
Feature configuration elements
You can use the following elements in your server.xml file to configure the Bean Validation 1.0 feature: