Example usage for org.springframework.messaging PollableChannel send

List of usage examples for org.springframework.messaging PollableChannel send

Introduction

In this page you can find the example usage for org.springframework.messaging PollableChannel send.

Prototype

default boolean send(Message<?> message) 

Source Link

Document

Send a Message to this channel.

Usage

From source file:org.springframework.integration.config.xml.GatewayParserTests.java

@Test
public void testSolicitResponse() {
    PollableChannel channel = (PollableChannel) context.getBean("replyChannel");
    channel.send(new GenericMessage<String>("foo"));
    TestService service = (TestService) context.getBean("solicitResponse");
    String result = service.solicitResponse();
    assertEquals("foo", result);
}