outGateway.start(); QueueChannel replyChannel = new QueueChannel(); outGateway.setReplyChannel(replyChannel); Message<String> message = new GenericMessage<String>("foo"); outGateway.setRemoteTimeout(120000);
QueueChannel replyChannel = new QueueChannel(); replyChannel.setBeanName("replyChannel"); outbound.setReplyChannel(replyChannel); outbound.setBeanFactory(mock(BeanFactory.class)); outbound.afterPropertiesSet();