|
Revision cbf5c896ad511842634dbd7f7759f250796f277e, 0.7 kB
(checked in by Theo Schlossnagle <jesus@omniti.com>, 4 years ago)
|
make all the activemq stuff actually configurable from stratcon.conf. Admin over vm:// so we have no port conflicts and add the commons-logging jar so that ApacheMQ can leverage that and log sanely
|
- Property mode set to
100755
|
| Line | |
|---|
| 1 |
#!/bin/sh |
|---|
| 2 |
|
|---|
| 3 |
JAVA=@JAVA@ |
|---|
| 4 |
JPARAMS="-Xms32m -Xmx512m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC" |
|---|
| 5 |
JARS="reconnoiter.jar activemq-all-5.2.0.jar antlr-runtime-3.1.1.jar \ |
|---|
| 6 |
esper-3.2.0.jar log4j-1.2.15.jar \ |
|---|
| 7 |
spring-beans-2.5.5.jar spring-context-2.5.5.jar \ |
|---|
| 8 |
cglib-nodep-2.2.jar commons-pool-1.4.jar commons-dbcp-1.2.2.jar \ |
|---|
| 9 |
postgresql-8.3-604.jdbc3.jar rabbitmq-client.jar commons-io-1.2.jar \ |
|---|
| 10 |
commons-cli-1.1.jar commons-logging-1.1.1.jar" |
|---|
| 11 |
|
|---|
| 12 |
DIRS=". lib @prefix@/java/lib @prefix@/java" |
|---|
| 13 |
CP= |
|---|
| 14 |
|
|---|
| 15 |
for jar in $JARS |
|---|
| 16 |
do |
|---|
| 17 |
found= |
|---|
| 18 |
for dir in $DIRS |
|---|
| 19 |
do |
|---|
| 20 |
if [ -r "$dir/$jar" ]; then |
|---|
| 21 |
found="$dir/$jar" |
|---|
| 22 |
CP="$CP:$found" |
|---|
| 23 |
break |
|---|
| 24 |
fi |
|---|
| 25 |
done |
|---|
| 26 |
if [ -z "$found" ]; then |
|---|
| 27 |
echo "Cannot find $jar" 2>&1 |
|---|
| 28 |
exit |
|---|
| 29 |
fi |
|---|
| 30 |
done |
|---|
| 31 |
exec $JAVA $JPARAMS -cp $CP com.omniti.reconnoiter.IEPEngine $* |
|---|