Thank you so much for the quick response.
So following is a code for my gateway which is called from one java class:
Code:
public interface IntegrationGateway {
Object execute(Message m);
}
and code for java class:
Code:
try {
// invoke the gateway
response = gateway.execute(message);
} catch (MessagingException exception) {
logger.debug("Messaging Exception..",exception);
}catch(NullPointerException ne){
logger.debug("Yeah I received Null..",ne);
}catch (Exception e){
logger.debug("Exception is...:"+e);
}
So I am expecting following exceptions:
1) SOAP Fault
2) Any runtime like NullPointer Exception
Now if I have error channel and my transformer, it goes to a catch block of Messaging Exception. And when I remove them, it goes to catch block of NullPointerException in case of NullPointer exception and to catch block of Exception in case of SOAP Fault exception.
For the reference following is the method signature of my transformer after error channel:
Code:
public void transform(MessagingException exception){
// Logic to work with exception
}
Am I doing something wrong in my code?