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:string

Get the endpoint implementation.

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:QName

Get the qualified name of the endpoint interface.

schemaLanguagexs:stringSet the validation schema language. Defaults to http://www.w3.org/2001/XMLSchema
servicexs:QName

Get the service qualified name of the endpoint.

ElementTypeDescription
errorHandlerFactory<spring:bean/>Set a custom error handler to deal with validation errors. Defaults to a CountingErrorHandlerFactory.
noNamespaceSchemaResource<spring:bean/>Set the validation schema to be used when no namespace is specified.
schema<spring:bean/>Set the validation schema instance.
schemaResource<spring:bean/>Set the validation schema as a Spring Resource.
schemaSource<spring:bean/>Set the validation schema as an XML Source.