use of org.springframework.amqp.rabbit.core.RabbitTemplate in project fru-paqx-parent by dellemc-symphony.
the class RabbitConfig method rabbitTemplate.
@Bean
RabbitTemplate rabbitTemplate() {
RabbitTemplate template = new RabbitTemplate(rabbitConnectionFactory);
template.setMessageConverter(messageConverter());
template.setRetryTemplate(retryTemplate());
return template;
}
use of org.springframework.amqp.rabbit.core.RabbitTemplate in project av-service by dvoraka.
the class AmqpBridgeOutputConfig method outRabbitTemplate.
@Bean
public RabbitTemplate outRabbitTemplate(ConnectionFactory outConnectionFactory, MessageConverter outMessageConverter) {
RabbitTemplate template = new RabbitTemplate(outConnectionFactory);
template.setReceiveTimeout(listeningTimeout);
template.setQueue(resultQueue);
template.setMessageConverter(outMessageConverter);
return template;
}
use of org.springframework.amqp.rabbit.core.RabbitTemplate in project av-service by dvoraka.
the class AmqpServerConfig method fileServerRabbitTemplate.
@Bean
public RabbitTemplate fileServerRabbitTemplate(ConnectionFactory serverConnectionFactory, MessageConverter fileServerMessageConverter) {
RabbitTemplate template = new RabbitTemplate(serverConnectionFactory);
template.setReceiveTimeout(listeningTimeout);
template.setMessageConverter(fileServerMessageConverter);
return template;
}
use of org.springframework.amqp.rabbit.core.RabbitTemplate in project av-service by dvoraka.
the class AmqpReplicationClientConfig method replicationRabbitTemplate.
@Bean
public RabbitTemplate replicationRabbitTemplate(ConnectionFactory connectionFactory, MessageConverter replicationMessageConverter) {
RabbitTemplate template = new RabbitTemplate(connectionFactory);
template.setReceiveTimeout(listeningTimeout);
template.setExchange(replicationExchange);
template.setMessageConverter(replicationMessageConverter);
return template;
}
use of org.springframework.amqp.rabbit.core.RabbitTemplate in project av-service by dvoraka.
the class AmqpTestReplicationClientConfig method replicationRabbitTemplate.
@Bean
public RabbitTemplate replicationRabbitTemplate(ConnectionFactory connectionFactory, MessageConverter replicationMessageConverter) {
RabbitTemplate template = new RabbitTemplate(connectionFactory);
template.setReceiveTimeout(listeningTimeout);
template.setExchange(replicationExchange);
template.setMessageConverter(replicationMessageConverter);
return template;
}
Aggregations