There's no general mechanism to do that, although we are looking into it for a future release of Spring Integration.
As long as your exception is serializable, you can send it as the result and test the payload type on the sending system...
public Object handle(String foo) {
return new MySerializableException("Command failed");
}
And, on the receiving side...
if (result instanceof Exception) {
throw (Exception) result;
}