Search in sources :

Example 1 with DirectMessageListenerContainer

use of org.springframework.amqp.rabbit.listener.DirectMessageListenerContainer in project av-service by dvoraka.

the class EnvironmentConfiguratorConfig method messageListenerContainer.

@Bean
public MessageListenerContainer messageListenerContainer(ConnectionFactory connectionFactory) {
    DirectMessageListenerContainer container = new DirectMessageListenerContainer();
    container.setConnectionFactory(connectionFactory);
    container.setQueueNames(fileQueue);
    return container;
}
Also used : DirectMessageListenerContainer(org.springframework.amqp.rabbit.listener.DirectMessageListenerContainer) Bean(org.springframework.context.annotation.Bean)

Example 2 with DirectMessageListenerContainer

use of org.springframework.amqp.rabbit.listener.DirectMessageListenerContainer in project av-service by dvoraka.

the class AmqpTestReplicationClientConfig method replicationMessageListenerContainer.

@Bean
public MessageListenerContainer replicationMessageListenerContainer(ConnectionFactory connectionFactory, MessageListener replicationMessageListener) {
    DirectMessageListenerContainer container = new DirectMessageListenerContainer();
    container.setConnectionFactory(connectionFactory);
    container.setQueueNames(fullQueueName);
    container.setMessageListener(replicationMessageListener);
    return container;
}
Also used : DirectMessageListenerContainer(org.springframework.amqp.rabbit.listener.DirectMessageListenerContainer) Bean(org.springframework.context.annotation.Bean)

Example 3 with DirectMessageListenerContainer

use of org.springframework.amqp.rabbit.listener.DirectMessageListenerContainer in project av-service by dvoraka.

the class AmqpFileClientConfig method messageListenerContainer.

@Bean
public MessageListenerContainer messageListenerContainer(ConnectionFactory connectionFactory, MessageListener messageListener) {
    DirectMessageListenerContainer container = new DirectMessageListenerContainer();
    container.setConnectionFactory(connectionFactory);
    container.setQueueNames(resultQueue);
    container.setMessageListener(messageListener);
    return container;
}
Also used : DirectMessageListenerContainer(org.springframework.amqp.rabbit.listener.DirectMessageListenerContainer) Bean(org.springframework.context.annotation.Bean)

Example 4 with DirectMessageListenerContainer

use of org.springframework.amqp.rabbit.listener.DirectMessageListenerContainer in project av-service by dvoraka.

the class AmqpReplicationClientConfig method replicationMessageListenerContainer.

@Bean
public MessageListenerContainer replicationMessageListenerContainer(ConnectionFactory connectionFactory, MessageListener replicationMessageListener) {
    DirectMessageListenerContainer container = new DirectMessageListenerContainer();
    container.setConnectionFactory(connectionFactory);
    container.setQueueNames(fullQueueName);
    container.setMessageListener(replicationMessageListener);
    return container;
}
Also used : DirectMessageListenerContainer(org.springframework.amqp.rabbit.listener.DirectMessageListenerContainer) Bean(org.springframework.context.annotation.Bean)

Example 5 with DirectMessageListenerContainer

use of org.springframework.amqp.rabbit.listener.DirectMessageListenerContainer in project av-service by dvoraka.

the class AmqpServerConfig method fileServerMessageListenerContainer.

@Bean
public MessageListenerContainer fileServerMessageListenerContainer(ConnectionFactory serverConnectionFactory, MessageListener fileServerMessageListener) {
    DirectMessageListenerContainer container = new DirectMessageListenerContainer();
    container.setConnectionFactory(serverConnectionFactory);
    container.setQueueNames(fileQueue);
    container.setMessageListener(fileServerMessageListener);
    return container;
}
Also used : DirectMessageListenerContainer(org.springframework.amqp.rabbit.listener.DirectMessageListenerContainer) Bean(org.springframework.context.annotation.Bean)

Aggregations

DirectMessageListenerContainer (org.springframework.amqp.rabbit.listener.DirectMessageListenerContainer)5 Bean (org.springframework.context.annotation.Bean)5