doc says : The new DirectChannel bean will be created on context startup if there is no bean with this name.
@MessagingGateway
public interface Responder {
@Gateway(requestChannel = "request.input")
String respond(String request);
}
@Bean
public IntegrationFlow doResponse(){
return IntegrationFlows
.from("request.input")
.transform("payload")
.get();
}
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {IntegrationConfiguration.class})
public class GatewayTests {
@Autowired Responder responder;
@Test
public void test(){
responder.respond("request");
}
}
this results in : No bean named 'request.input' is defined have i left something out which triggers the channel creation ?
spring-boot : 1.1.9.RELEASE spring-integration-java-dsl : 1.0.0.RELEASE spring-integration : 4.0.4.RELEASE