BaseActiveMqConfiguration.java 533 B

1234567891011121314151617181920
  1. package com.crm.rely.backend.configuration;
  2. import com.crm.rely.backend.core.constant.Constants;
  3. import org.apache.activemq.command.ActiveMQQueue;
  4. import org.springframework.context.annotation.Bean;
  5. import javax.jms.Queue;
  6. public class BaseActiveMqConfiguration {
  7. @Bean(name = "logQueue")
  8. public Queue logQueue() {
  9. return new ActiveMQQueue(Constants.ACTIVEMQ_JMS_URL_LOG);
  10. }
  11. @Bean(name = "smsQueue")
  12. public Queue smsQueue() {
  13. return new ActiveMQQueue(Constants.ACTIVEMQ_JMS_URL_SMS);
  14. }
  15. }