Element Summary

ElementDescriptionClass
componentValidationorg.apache.servicemix.validation.ValidationComponent
endpointorg.apache.servicemix.validation.ValidationEndpoint

Element Detail

Element: component

ElementTypeDescription
endpoints(endpoint)*
executorFactory<spring:bean/>The executor factory to use to create the executor. If none is provided, one will be retrieved from the JBI container when the component is deployed into ServiceMix 3.x, or a default implementation will be used.

Element: endpoint

AttributeTypeDescription
endpointxs:stringThe name of the endpoint.
handlingErrorMethodxs:stringConfigure how validation errors should be handled. Default value is FAULT_JBI.
FAULT_JBI
A jbi exception is thrown on validation errors (depending on used MEP)
FAULT_FLOW
The validation result will be sent in out / fault message (depending on used MEP)
interfaceNamexs:QNameThe qualified name of the interface exposed by the endpoint.
noNamespaceSchemaResourcexs:stringSet the validation schema to be used when no namespace is specified.
schemaLanguagexs:stringSet the validation schema language. Defaults to http://www.w3.org/2001/XMLSchema
schemaResourcexs:stringSet the validation schema as a Spring Resource.
servicexs:QNameThe qualified name of the service the endpoint exposes.
ElementTypeDescription
errorHandlerFactory<spring:bean/>Set a custom error handler to deal with validation errors. Defaults to a CountingErrorHandlerFactory.
schema<spring:bean/>Set the validation schema instance.
schemaSource<spring:bean/>Set the validation schema as an XML Source.