Do you prefer to avoid registering an out fault interceptor ? It will let you get to that exception: message.getContent(Exception.class)
otherwise, you can probably set your exception on the inMessage.getExchange() and then get to it from the same exchange from the outbound interceptor: ourMessage.getExchange() Cheers, Sergey On Mon, Jun 13, 2011 at 3:52 AM, STEVEN THEIN <steven.th...@oracle.com> wrote: > In handleFault() method (inbound interceptor), I want to create a fault > message from the exception and then I want to send it to my outbound handle. > Is there a way to do this? > > Thanks > Steve > > On 6/8/2011 1:33 PM, Daniel Kulp wrote: >> >> On Wednesday, June 08, 2011 10:07:56 AM STEVEN THEIN wrote: >>> >>> Hi, >>> >>> I created an inbound interceptor on server side which have two override >>> methods:- >>> >>> handleMessage() and handleFault() >>> >>> When an exception is thrown while processing the message in >>> handleMessage(), it called into handleFault() method. >>> In handleFault() method, how can I retrieve the fault that was thrown >>> from handleMessage(). >> >> I think you can call message.getContent(Fault.class) or >> message.getContent(Exception.class). Likely the latter. >> >> >