This commit is contained in:
Mark Fisher
2009-03-11 20:13:24 +00:00
parent 5bcbc6a896
commit c1040cec61
2 changed files with 6 additions and 7 deletions

View File

@@ -27,6 +27,7 @@ import org.springframework.beans.factory.InitializingBean;
import org.springframework.integration.core.Message;
import org.springframework.integration.core.MessageChannel;
import org.springframework.integration.message.MessageBuilder;
import org.springframework.integration.message.MessageDeliveryException;
import org.springframework.integration.selector.MessageSelector;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.TransactionStatus;
@@ -245,7 +246,7 @@ public class MessageChannelTemplate implements InitializingBean {
.setErrorChannel(replyChannel)
.build();
if (!this.doSend(request, channel)) {
return null;
throw new MessageDeliveryException(request, "failed to send message to channel");
}
return this.doReceive(replyChannel);
}