Example usage for org.springframework.integration.amqp.inbound AmqpInboundGateway setRequestChannel

List of usage examples for org.springframework.integration.amqp.inbound AmqpInboundGateway setRequestChannel

Introduction

In this page you can find the example usage for org.springframework.integration.amqp.inbound AmqpInboundGateway setRequestChannel.

Prototype

public void setRequestChannel(MessageChannel requestChannel) 

Source Link

Document

Set the request channel.

Usage

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

@Bean
public AmqpInboundGateway inbound(SimpleMessageListenerContainer listenerContainer) {
    AmqpInboundGateway gateway = new AmqpInboundGateway(listenerContainer);

    gateway.setRequestChannel(inboundRequests());
    gateway.setRequestTimeout(60000000l);

    gateway.afterPropertiesSet();/*from w w  w  .ja v  a  2s  .  co m*/

    return gateway;
}