Sync the latest code changes
[aai/aai-common.git] / aai-core / src / main / java / org / onap / aai / dmaap / AAIDmaapEventJMSProducer.java
index d41f476..914042d 100644 (file)
@@ -35,7 +35,8 @@ public class AAIDmaapEventJMSProducer {
        public AAIDmaapEventJMSProducer() {
                if(AAIConfig.get("aai.jms.enable", "true").equals("true")){
                        this.jmsTemplate = new JmsTemplate();
-            this.jmsTemplate.setConnectionFactory(new CachingConnectionFactory(new ActiveMQConnectionFactory("tcp://localhost:61447")));
+                       String activeMqTcpUrl = System.getProperty("activemq.tcp.url", "tcp://localhost:61447");
+                       this.jmsTemplate.setConnectionFactory(new CachingConnectionFactory(new ActiveMQConnectionFactory(activeMqTcpUrl)));
                        this.jmsTemplate.setDefaultDestination(new ActiveMQQueue("IN_QUEUE"));
                }
        }