SETUP is an OUT Phase, not an IN Phase.  RECEIVE is the equivalent IN Phase.  
The Exchange would be present on the IN since the Exchange is where the message 
is originating from.  I doubt it would be available on OUT.  Doing a quick scan 
through CamelConduit, looks like it's not even created until the output stream 
is closed, which would normally be near the very end of the OUT Phases.

-----Original Message-----
From: ychawla [mailto:[email protected]] 
Sent: Thursday, February 16, 2012 1:15 PM
To: [email protected]
Subject: RE: CXF + Camel + JMS Endpoint exception handling

Hi Sven,
I changed my phase to:

        public CamelExceptionInterceptor() {
                super(Phase.SETUP);
        }

and now I see the exception, but I can't get the CamelExchange (it is null):

            Exchange exchange = (Exchange) 
message.get(CxfConstants.CAMEL_EXCHANGE);
            exchange.setException(exception);

I am in the debugger and I see the Camel headers and message information in the 
CXF Message but I am unable to get the Camel Exchange.

Any ideas?

Thanks,
Yogesh


--
View this message in context: 
http://cxf.547215.n5.nabble.com/CXF-Camel-JMS-Endpoint-exception-handling-tp4471174p5490748.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to