Ron,

seems you are right. Open a JIRA please.

Regards
Lars


Am Mittwoch 15 Oktober 2008 10:35:33 schrieb rgavlin:
> Greetings,
>
> The old lightweight validation component used to throw a
> org.apache.servicemix.jbi.FaultException in the following code snippet:
>
>                 if (!handlingErrorMethod.equalsIgnoreCase(FAULT_FLOW)) {
>                       // HANDLE AS JBI FAULT
>                       throw new FaultException("Failed to validate against
> schema: " + schema, exchange, fault);
>                 } else {
>                       MessageUtil.transfer(fault, out);
>                       return true;
>                 }
>
> In the new servicemix-validation component, a JBIException is thrown
> instead of a FaultException. The relevant code snippet follows:
>
>                 if (!handlingErrorMethod.equalsIgnoreCase(FAULT_FLOW)) {
>                     // HANDLE AS JBI FAULT
>                     throw new JBIException(
>                             "Failed to validate against schema: " + schema
> + "\n" + new SourceTransformer().toString(fault.getContent()));
>                 } else {
>                     MessageUtil.transfer(fault, out);
>                 }
>
> The new servicemix-validation component does not seem correct to me. Do you
> agree? If so, I will open a JIRA for this issue.
>
> Ron

Reply via email to