ActiveMQProduceConfig.java 1001 B

12345678910111213141516171819202122232425262728293031
  1. //package com.yihu.wlyy.config;
  2. //
  3. //import org.apache.activemq.ActiveMQConnectionFactory;
  4. //import org.springframework.beans.factory.annotation.Value;
  5. //import org.springframework.context.annotation.Bean;
  6. //import org.springframework.context.annotation.Configuration;
  7. //import org.springframework.jms.annotation.EnableJms;
  8. //
  9. ///**
  10. // * Created by chenweida on 2017/9/9.
  11. // * 生产者配置
  12. // */
  13. //@EnableJms
  14. //@Configuration
  15. //public class ActiveMQProduceConfig {
  16. // @Value("${activemq.username}")
  17. // private String username;
  18. // @Value("${activemq.password}")
  19. // private String password;
  20. // @Value("${activemq.url}")
  21. // private String url;
  22. //
  23. // @Bean
  24. // public ActiveMQConnectionFactory activeMQConnectionFactory() {
  25. // ActiveMQConnectionFactory activeMQConnectionFactory =
  26. // new ActiveMQConnectionFactory(username, password, url);
  27. //// "tcp://192.168.0.100:61616");
  28. //
  29. // return activeMQConnectionFactory;
  30. // }
  31. //}