Example usage for org.springframework.messaging.support ExecutorSubscribableChannel ExecutorSubscribableChannel

List of usage examples for org.springframework.messaging.support ExecutorSubscribableChannel ExecutorSubscribableChannel

Introduction

In this page you can find the example usage for org.springframework.messaging.support ExecutorSubscribableChannel ExecutorSubscribableChannel.

Prototype

public ExecutorSubscribableChannel() 

Source Link

Document

Create a new ExecutorSubscribableChannel instance where messages will be sent in the callers thread.

Usage

From source file:org.springframework.messaging.simp.stomp.StompBrokerRelayMessageHandlerIntegrationTests.java

@Before
public void setUp() throws Exception {
    logger.debug("Setting up before '" + this.testName.getMethodName() + "'");
    this.port = SocketUtils.findAvailableTcpPort(61613);
    this.responseChannel = new ExecutorSubscribableChannel();
    this.responseHandler = new TestMessageHandler();
    this.responseChannel.subscribe(this.responseHandler);
    this.eventPublisher = new TestEventPublisher();
    startActiveMqBroker();/*  ww w . j av a  2 s.  c o m*/
    createAndStartRelay();
}