12345678910111213141516171819202122232425262728293031 |
- //package com.yihu.wlyy.config;
- //
- //import org.apache.activemq.ActiveMQConnectionFactory;
- //import org.springframework.beans.factory.annotation.Value;
- //import org.springframework.context.annotation.Bean;
- //import org.springframework.context.annotation.Configuration;
- //import org.springframework.jms.annotation.EnableJms;
- //
- ///**
- // * Created by chenweida on 2017/9/9.
- // * 生产者配置
- // */
- //@EnableJms
- //@Configuration
- //public class ActiveMQProduceConfig {
- // @Value("${activemq.username}")
- // private String username;
- // @Value("${activemq.password}")
- // private String password;
- // @Value("${activemq.url}")
- // private String url;
- //
- // @Bean
- // public ActiveMQConnectionFactory activeMQConnectionFactory() {
- // ActiveMQConnectionFactory activeMQConnectionFactory =
- // new ActiveMQConnectionFactory(username, password, url);
- //// "tcp://192.168.0.100:61616");
- //
- // return activeMQConnectionFactory;
- // }
- //}
|