//package org.jeecg.modules.pm.handler;
//
//import org.apache.activemq.ActiveMQConnectionFactory;
//import org.apache.activemq.command.ActiveMQTopic;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.jms.annotation.EnableJms;
//import org.springframework.jms.listener.DefaultMessageListenerContainer;
//
//import javax.jms.ConnectionFactory;
//import javax.jms.Topic;
//
///**
// * @author: JJww
// * @Date:2022/3/25
// */
//@EnableJms
//@Configuration
//public class ActiveMqConfig {
//
//
//    private final static String VSS_TOPIC = "openapi.vss.topic";
//
//    private final static String EPS_TOPIC = "openapi.eps.topic";
//
//    @Bean(name = "topic")
//    public Topic topic() {
//        return new ActiveMQTopic(VSS_TOPIC);
//    }
//
//    @Bean
//    public ConnectionFactory connectionFactory() {
//        return new ActiveMQConnectionFactory("tcp://172.16.16.2:61618");
//    }
//
//
//    @Bean
//    public DefaultMessageListenerContainer defaultMessageListenerContainer(ConnectionFactory connectionFactory) {
//        final DefaultMessageListenerContainer defaultMessageListenerContainer = new DefaultMessageListenerContainer();
//        defaultMessageListenerContainer.setDestinationName(VSS_TOPIC);
//        defaultMessageListenerContainer.setConnectionFactory(connectionFactory);
//        defaultMessageListenerContainer.setMessageListener(vssMssageListener);
//        defaultMessageListenerContainer.setPubSubDomain(true);
//        return defaultMessageListenerContainer;
//    }
//
//
//    public ActiveMQConnectionFactory activeMQConnectionFactory(){
//
//    }
//
//
//}
