My reading of the JBI specification is that

O       a PROVIDER may respond to a RobustInOnly
        MessageExchange with a Fault;

o       a Fault is a NormalizedMessage in the
        MessageExchange container just like the
        In and Out messages;

O       a MessageExchange containing a Fault is
        not necessarily the same as a MessageExchange
        with an ExchangeStatus.ERROR (although it
        could be, Fault and ERROR are orthogonal
        concepts).

When I try

        PROVIDER replies to RobustInOnly MessageExchange by

                Fault fault = exchange.createFault();
                fault.setContent(foo);
                exchange.setMessage(fault, "fault");
                channel.send(exchange)

ServiceMix-3.0 responds with a MessagingException
of "illegal exchange status: Active".

Must MessageExchanges containing Faults be set to
ExchangeStatus.ERROR?

--
John Sloan              email [EMAIL PROTECTED]
Avaya Inc.              voice  +1 303 538 2746
1300 West 120th Ave.    office          B1-C46
Westminster CO 80234-2701 USA 


Reply via email to