]> git.somenet.org - pub/jan/sbc.git/blob - runJMS.sh
Merge branch 'master' of https://bitbucket.org/rgregor/sbc-ss-2013
[pub/jan/sbc.git] / runJMS.sh
1 #!/bin/bash
2 mvn package
3
4 # Run all the brokers
5 # nameservice + management (hardcoded)
6 mvn exec:java -Dexec.mainClass="org.apache.activemq.console.Main" -Dexec.args="start broker:(tcp://localhost:61610)?useJmx=true&persistent=false" &
7
8 # failunsafe pizzatarget
9 mvn exec:java -Dexec.mainClass="org.apache.activemq.console.Main" -Dexec.args="start broker:(tcp://localhost:61611)?useJmx=true&persistent=false" &
10
11 #pizzaria 1
12 mvn exec:java -Dexec.mainClass="org.apache.activemq.console.Main" -Dexec.args="start broker:(tcp://localhost:61621)?useJmx=true&persistent=false" &
13
14 #pizzaria 2
15 mvn exec:java -Dexec.mainClass="org.apache.activemq.console.Main" -Dexec.args="start broker:(tcp://localhost:61622)?useJmx=true&persistent=false" &
16
17
18 # wait for broakers to start
19 sleep 60
20 echo "*** continuing launch process ***"
21 echo "*** continuing launch process ***"
22 echo "*** continuing launch process ***"
23 echo "*** continuing launch process ***"
24 echo "*** continuing launch process ***"
25
26
27 # Run Groupgui
28 mvn exec:java -Dexec.mainClass="at.ac.tuwien.sbc.valesriegler.group.GroupAgent" -Dexec.args="JMS tcp://localhost:61610?jms.prefetchPolicy.all=1" &
29
30 #run pizzeria1
31 ./runJMSPizzaria.sh "tcp://localhost:61621?jms.prefetchPolicy.all=1"
32 ./runJMSPizzaria.sh "tcp://localhost:61622?jms.prefetchPolicy.all=1"