Issue #18 - fix port conflicts that prevented multiple instances of edex request from starting; fix a problem that prevented the selected http port in setup.env from propogating throughout the edex instances.

Former-commit-id: 2ed20e107d [formerly 6b206773eff05abf20ecc87b27e96c47b67ba600]
Former-commit-id: e792b2a16f
This commit is contained in:
Bryan Kowal 2012-04-04 18:29:13 -05:00
parent c9d5823d2c
commit 3e039dc79f
12 changed files with 39 additions and 13 deletions

View file

@ -118,6 +118,9 @@ wrapper.java.additional.39=-DHighMem=%HIGH_MEM_FLAG%
wrapper.java.additional.40=-Dmanagement.port=%MGMT_PORT%
wrapper.java.additional.41=-Dqpid.dest_syntax=BURL
wrapper.java.additional.42=-Djetty.port=8081
wrapper.java.additional.43=-Dconfidential.port=8443
wrapper.java.additional.44=-Dhttp.port=%HTTP_PORT%
# Initial Java Heap Size (in MB)
wrapper.java.initmemory=%INIT_MEM%

View file

@ -24,7 +24,8 @@ export PYPIES_SERVER=http://localhost:9582
# moved here from environment.xml
# these values are returned to clients that contact the localization service
export HTTP_SERVER=http://localhost:9581/services
export HTTP_PORT=9581
export HTTP_SERVER=http://localhost:${HTTP_PORT}/services
export JMS_SERVER=tcp://localhost:5672
export RADAR_SERVER=tcp://localhost:8813

View file

@ -10,9 +10,12 @@
<camelContext id="subscription-camel"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler">
<endpoint id="subscriptionHTTP_from"
uri="jetty:http://0.0.0.0:${http.port}/services/subscribe?disableStreamCache=true" />
<!-- SubscriptionSrv routes -->
<route id="subscriptionHTTP">
<from uri="jetty:http://0.0.0.0:9581/services/subscribe?disableStreamCache=true" />
<from uri="ref:subscriptionHTTP_from" />
<bean ref="subscription" method="processRequest"/>
<bean ref="serializationUtil" method="marshalToXml" />
</route>

View file

@ -22,10 +22,10 @@
<property name="connectors">
<list>
<bean id="Connector" class="org.eclipse.jetty.server.nio.SelectChannelConnector">
<property name="port" value="8080"/>
<property name="port" value="${jetty.port}"/>
<property name="maxIdleTime" value="30000"/>
<property name="acceptors" value="2"/>
<property name="confidentialPort" value="8443"/>
<property name="confidentialPort" value="${confidential.port}"/>
</bean>
</list>
</property>
@ -61,15 +61,19 @@
</bean>
<camelContext id="uengine-camel" xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
<endpoint id="uEngineHttpThrift_from"
uri="jetty:http://0.0.0.0:${http.port}/services/pyproductthrift?disableStreamCache=true&amp;chunked=false&amp;httpBindingRef=#binaryHttpBinding" />
<endpoint id="uEngineHttpJaxb_from"
uri="jetty:http://0.0.0.0:${http.port}/services/pyproductjaxb" />
<!-- UEngine routes -->
<route id="uEngineHttpThrift">
<from uri="jetty:http://0.0.0.0:9581/services/pyproductthrift?disableStreamCache=true&amp;chunked=false&amp;httpBindingRef=#binaryHttpBinding" />
<from uri="ref:uEngineHttpThrift_from" />
<bean ref="uEngine" method="executePython" />
<bean ref="serializationUtil" method="transformToThrift" />
</route>
<route id="uEngineHttpJaxb">
<from uri="jetty:http://0.0.0.0:9581/services/pyproductjaxb" />
<from uri="ref:uEngineHttpJaxb_from" />
<bean ref="uEngine" method="executePython" />
<bean ref="serializationUtil" method="marshalToXml" />
</route>

View file

@ -9,8 +9,11 @@
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler">
<endpoint id="thriftService_from"
uri="jetty:http://0.0.0.0:${http.port}/services/thrift?disableStreamCache=true&amp;chunked=false&amp;httpBindingRef=#binaryHttpBinding" />
<route id="thriftService">
<from uri="jetty:http://0.0.0.0:9581/services/thrift?disableStreamCache=true&amp;chunked=false&amp;httpBindingRef=#binaryHttpBinding" />
<from uri="ref:thriftService_from" />
<bean ref="routeWrapper" method="executeThrift"/>
</route>

View file

@ -20,8 +20,12 @@
<camelContext id="mpeFieldGenReq-context"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler">
<endpoint id="mpeHttp_from"
uri="jetty:http://0.0.0.0:${http.port}/services/mpeFieldGenHttpService?disableStreamCache=true" />
<route id="mpeHttp">
<from uri="jetty:http://0.0.0.0:9581/services/mpeFieldGenHttpService?disableStreamCache=true" />
<from uri="ref:mpeHttp_from" />
<doTry>
<bean ref="mpeFieldGenService" method="process" />
<doCatch>

View file

@ -6,8 +6,12 @@
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
<camelContext id="textdbsrv-request-camel" xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
<endpoint id="textdbsrvXml_from"
uri="jetty:http://0.0.0.0:${http.port}/services/textdbsrv?disableStreamCache=true" />
<route id="textdbsrvXml">
<from uri="jetty:http://0.0.0.0:9581/services/textdbsrv?disableStreamCache=true" />
<from uri="ref:textdbsrvXml_from" />
<bean ref="serializationUtil" method="unmarshalFromXml" />
<bean ref="textdbsrv" method="processMessage" />
<bean ref="serializationUtil" method="marshalToXml" />

View file

@ -55,8 +55,12 @@
</bean>
<camelContext id="nceppurge-camel" xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
<endpoint id="nceppurgeHttp_from"
uri="jetty:http://0.0.0.0:${http.port}/services/purgePlugin" />
<route id="nceppurgeHttp">
<from uri="jetty:http://0.0.0.0:9581/services/purgePlugin" />
<from uri="ref:nceppurgeHttp_from" />
<bean ref="purgeutil" method="purgeAllTable" />
</route>