All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dell.cpsd.common.rabbitmq.config.RabbitMqProductionConfig Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
/**
 * Copyright © 2017 Dell Inc. or its subsidiaries.  All Rights Reserved.
 * Dell EMC Confidential/Proprietary Information
 */

package com.dell.cpsd.common.rabbitmq.config;

import com.dell.cpsd.common.rabbitmq.connectors.RabbitMQCachingConnectionFactory;
import org.springframework.amqp.rabbit.connection.ConnectionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

/**
 * This is the production environment-specific RabbitMQ configuration.
 * 

* Copyright © 2017 Dell Inc. or its subsidiaries. All Rights Reserved. * Dell EMC Confidential/Proprietary Information *

* * @version 1.0 * @since SINCE-TBD */ @Configuration @Profile("production") public class RabbitMqProductionConfig { /* * The configuration properties for the client. */ @Autowired @Qualifier("rabbitPropertiesConfig") private IRabbitMqPropertiesConfig propertiesConfig; /** * @return The ConnectionFactory to use. * @since SINCE-TBD */ @Bean @Qualifier("rabbitConnectionFactory") public ConnectionFactory productionCachingConnectionFactory() { final com.rabbitmq.client.ConnectionFactory connectionFactory = new com.rabbitmq.client.ConnectionFactory(); final RabbitMQCachingConnectionFactory cachingCF = new RabbitMQCachingConnectionFactory(connectionFactory, propertiesConfig); return cachingCF; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy