Omaha #4392 Fixed broker address substitution

Change-Id: Ib7ea0577e8d020ad2d94aa7ddbaa08459c9fa433

Former-commit-id: 6043b5052225fee426940fa8f32f54d8a265fba2
This commit is contained in:
David Lovely 2015-04-22 09:35:40 -05:00
parent 81e51c2b55
commit f2a6c66c50
3 changed files with 9 additions and 9 deletions

View file

@ -23,6 +23,8 @@ export DB_PORT=5432
# setup connection to qpid
export BROKER_ADDR=localhost
export BROKER_PORT=5672
export BROKER_HTTP=8180
# setup hdf5 connection if pypies is enabled
export PYPIES_SERVER=http://localhost:9582
@ -32,9 +34,9 @@ export PYPIES_SERVER=http://localhost:9582
export HTTP_PORT=9581
export HTTP_SERVER_PATH=/services
export HTTP_SERVER=http://localhost:${HTTP_PORT}${HTTP_SERVER_PATH}
export JMS_SERVER=tcp://${BROKER_ADDR}:5672
export JMS_SERVER=tcp://${BROKER_ADDR}:${BROKER_PORT}
export JMS_VIRTUALHOST=edex
export JMS_CONNECTIONS_URL=http://${BROKER_ADDR}:8180/api/v2/connection/${JMS_VIRTUALHOST}
export JMS_CONNECTIONS_URL=http://${BROKER_ADDR}:${BROKER_HTTP}/api/v2/connection/${JMS_VIRTUALHOST}
export RADAR_SERVER=tcp://localhost:8813
# set the AWIPS II shared directory

View file

@ -14,7 +14,7 @@
<!-- specify the connection to the broker (qpid) -->
<!-- MaxPrefetch set at 0, due to DataPool routers getting messages backed up behind long running tasks -->
<bean id="amqConnectionFactory" class="org.apache.qpid.client.AMQConnectionFactory">
<constructor-arg type="java.lang.String" value="amqp://guest:guest@/${JMS_VIRTUALHOST}?brokerlist='tcp://${BROKER_ADDR}?retries='9999'&amp;heartbeat='0'&amp;connecttimeout='5000'&amp;connectdelay='5000''&amp;maxprefetch='0'&amp;sync_publish='all'&amp;sync_ack='true'"/>
<constructor-arg type="java.lang.String" value="amqp://guest:guest@/${JMS_VIRTUALHOST}?brokerlist='${JMS_SERVER}?retries='9999'&amp;heartbeat='0'&amp;connecttimeout='5000'&amp;connectdelay='5000''&amp;maxprefetch='0'&amp;sync_publish='all'&amp;sync_ack='true'"/>
</bean>
<bean id="jmsPooledConnectionFactory" class="com.raytheon.uf.common.jms.JmsPooledConnectionFactory">

View file

@ -197,9 +197,9 @@ public class Wes2BridgeManager {
final String line1 = "export DATA_ARCHIVE_ROOT=";
final String line2 = "export DB_PORT=";
final String line3 = "export BROKER_ADDR=";
final String line3 = "export BROKER_PORT=";
final String line4 = "export HTTP_PORT=";
final String line5 = "export JMS_SERVER=";
final String line5 = "export BROKER_HTTP=";
final String line6 = "export SHARE_DIR=";
final String pypiesServerPattern = "(export PYPIES_SERVER=http://.+:)[1-9][0-9]+";
final Pattern pattern7 = Pattern.compile(pypiesServerPattern);
@ -213,13 +213,11 @@ public class Wes2BridgeManager {
} else if (line.startsWith(line2)) {
line = line2 + this.wes2BridgeCase.getDatabasePort();
} else if (line.startsWith(line3)) {
line = line3 + "localhost:"
+ this.wes2BridgeCase.getJmsPort();
line = line3 + this.wes2BridgeCase.getJmsPort();
} else if (line.startsWith(line4)) {
line = line4 + this.wes2BridgeCase.getEdexHttpPort();
} else if (line.startsWith(line5)) {
line = line5 + "tcp://localhost:"
+ this.wes2BridgeCase.getJmsPort();
line = line5 + this.wes2BridgeCase.getQpidHttpPort();
} else if (line.startsWith(line6)) {
line = line6 + edexDirectory + "/data/share";
} else if (matcher.matches()) {