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

co.jufeng.mq.activemq.QueueConfiguration Maven / Gradle / Ivy

package co.jufeng.mq.activemq;

import javax.jms.Queue;

import org.apache.activemq.command.ActiveMQQueue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import co.jufeng.mq.activemq.QueueNameList;

/**
 * 消息队列配置 spring boot2
 * @author 郑坚焱
 * Copyright (c) 2016-2018
 */
@Configuration  
public class QueueConfiguration {  
  
    @Bean(name = QueueNameList.MQ_QUEUE_DEFAULT)
    public Queue defaultQueue() {  
        return new ActiveMQQueue(QueueNameList.MQ_QUEUE_DEFAULT);  
    }  
    
    @Bean(name = QueueNameList.MQ_QUEUE_EXCEPTION_LOG)
    public Queue exceptionLogQueue() {  
        return new ActiveMQQueue(QueueNameList.MQ_QUEUE_EXCEPTION_LOG);  
    } 
    
}  




© 2015 - 2025 Weber Informatics LLC | Privacy Policy