Example usage for org.springframework.integration.amqp.outbound AmqpOutboundEndpoint setOutputChannel

List of usage examples for org.springframework.integration.amqp.outbound AmqpOutboundEndpoint setOutputChannel

Introduction

In this page you can find the example usage for org.springframework.integration.amqp.outbound AmqpOutboundEndpoint setOutputChannel.

Prototype

@Override
    public void setOutputChannel(MessageChannel outputChannel) 

Source Link

Usage

From source file:io.spring.batch.configuration.JobConfiguration.java

@Bean
@ServiceActivator(inputChannel = "outboundRequests")
public AmqpOutboundEndpoint amqpOutboundEndpoint(AmqpTemplate template) {
    AmqpOutboundEndpoint endpoint = new AmqpOutboundEndpoint(template);

    endpoint.setExpectReply(true);/*from   w w w .j  a v  a2 s  .c  o  m*/
    endpoint.setOutputChannel(inboundRequests());

    endpoint.setRoutingKey("partition.requests");

    return endpoint;
}