We have CXF SOAP over JMS service and we have enabled the XSD validation using schema-validation-enabled property. With this configuration, for all types of errors transaction rollback is happening. We want to stop rollback for XSD validation error and allow rollback for runtime errors.
We have added the onException(ValidationException.class).handled(true) but for SOAP over JMS, when validation exception happens, below code is not executed and rollback is called before itself.
is there a way in Apache CXF, we can control the rollback based on exception type - not to have rollback for xml validation type of exception?