Add ActiveMQ 89/10089/1
authorGuangrong Fu <fu.guangrong@zte.com.cn>
Sat, 2 Sep 2017 15:52:14 +0000 (23:52 +0800)
committerGuangrong Fu <fu.guangrong@zte.com.cn>
Sat, 2 Sep 2017 15:52:14 +0000 (23:52 +0800)
Start ActiveMQ before starting the Holmes service

Change-Id: Ic22f6dbf9643ffd7f19618f77215c613a622db02
Issue-ID: HOLMES-39
Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
engine-d-standalone/src/main/assembly/bin/run.sh

index 9948a04..6935858 100644 (file)
@@ -31,13 +31,19 @@ echo @JAVA_OPTS@ $JAVA_OPTS
 class_path="$main_path/:$main_path/holmes-engine-d.jar"
 echo @class_path@ $class_path
 
+/home/activemq/apache-activemq-5.9.0/bin/activemq start
+
 sed -i "s|url:.*|url: jdbc:mysql://$URL_JDBC/holmes|" "$main_path/conf/engine-d.yml"
 
-#ActiveMQ IP Configurtion
-#sed -i "s|brokerIp:.*|brokerIp: $BROKER_IP|" "$main_path/conf/engine-d.yml"
 
 export SERVICE_IP=`hostname -i`
 echo SERVICE_IP=${SERVICE_IP}
 
+#ActiveMQ IP Configurtion
+sed -i "s|brokerIp:.*|brokerIp: $SERVICE_IP|" "$main_path/conf/engine-d.yml"
+
+cat "$main_path/conf/engine-d.yml"
+
+
 "$JAVA" $JAVA_OPTS -classpath "$class_path" org.onap.holmes.engine.EngineDActiveApp server "$main_path/conf/engine-d.yml"