summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuangrong Fu <fu.guangrong@zte.com.cn>2017-09-02 23:52:14 +0800
committerGuangrong Fu <fu.guangrong@zte.com.cn>2017-09-02 23:52:14 +0800
commit33dbc2cc1d7f74c8b9bfa82878e60ef9bd7b890c (patch)
tree3618944df302fc04190acd3bd022778437399f74
parentc0d73d17062da98a028754555f2a6a18273f5c64 (diff)
Add ActiveMQ
Start ActiveMQ before starting the Holmes service Change-Id: Ic22f6dbf9643ffd7f19618f77215c613a622db02 Issue-ID: HOLMES-39 Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
-rw-r--r--engine-d-standalone/src/main/assembly/bin/run.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/engine-d-standalone/src/main/assembly/bin/run.sh b/engine-d-standalone/src/main/assembly/bin/run.sh
index 9948a04..6935858 100644
--- a/engine-d-standalone/src/main/assembly/bin/run.sh
+++ b/engine-d-standalone/src/main/assembly/bin/run.sh
@@ -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"