Omaha #3978 fix http ebxml thrift service
Change-Id: I50e57fcafd472cbfd72fc911e863e118a62ab5ba Former-commit-id: 6fca25e457989f4757999cfcce40ff9a3b1fc393
This commit is contained in:
parent
bd9b97063e
commit
55baf5c2f1
2 changed files with 21 additions and 16 deletions
|
@ -4,21 +4,25 @@
|
|||
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
|
||||
|
||||
<camelContext id="ebxml-request-service-camel"
|
||||
xmlns="http://camel.apache.org/schema/spring"
|
||||
errorHandlerRef="errorHandler">
|
||||
xmlns="http://camel.apache.org/schema/spring"
|
||||
errorHandlerRef="errorHandler">
|
||||
|
||||
<propertyPlaceholder id="ebxmlThriftServiceProperties"
|
||||
location="classpath:com.raytheon.uf.edex.registry.ebxml.properties"/>
|
||||
|
||||
<restConfiguration component="jetty" host="0.0.0.0" port="{{ebxml.thrift.service.port}}" >
|
||||
<endpointProperty key="disableStreamCache" value="{{ebxml.thrift.service.disableStreamCache}}" />
|
||||
<endpointProperty key="chunked" value="{{ebxml.thrift.service.chunked}}" />
|
||||
</restConfiguration>
|
||||
|
||||
<endpoint id="webServiceEndpoint"
|
||||
uri="jetty:http://0.0.0.0:${ebxml.thrift.service.port}${HTTP_SERVER_PATH}?${ebxml.thrift.service.properties}" />
|
||||
|
||||
<route id="webServiceRoute" streamCache="false">
|
||||
<from uri="webServiceEndpoint" />
|
||||
<setBody>
|
||||
<simple>
|
||||
bodyAs(javax.servlet.http.HttpServletRequest)
|
||||
</simple>
|
||||
</setBody>
|
||||
<bean ref="httpServiceExecutor" method="execute(${body}, ${in.header.CamelHttpServletResponse})"/>
|
||||
</route>
|
||||
</camelContext>
|
||||
<rest path="{{env:HTTP_SERVER_PATH}}">
|
||||
<post uri="/{format}">
|
||||
<to uri="bean:httpServiceExecutor?method=execute(${body}, ${header.format}, ${in.header.accept-encoding}, ${in.header.CamelHttpServletResponse})" />
|
||||
</post>
|
||||
<post uri="/">
|
||||
<to uri="bean:httpServiceExecutor?method=execute(${body}, ${in.header.content-type}, ${in.header.accept-encoding}, ${in.header.CamelHttpServletResponse})" />
|
||||
</post>
|
||||
</rest>
|
||||
</camelContext>
|
||||
|
||||
</beans>
|
||||
|
|
|
@ -16,7 +16,8 @@ ebxml-notification-batch-size=200
|
|||
ebxml-webserver-max-threads=8
|
||||
# EBXML thrift service port
|
||||
ebxml.thrift.service.port=9588
|
||||
ebxml.thrift.service.properties=disableStreamCache=true&chunked=false&httpBindingRef=#binaryHttpBinding&matchOnUriPrefix=true
|
||||
ebxml.thrift.service.disableStreamCache=true
|
||||
ebxml.thrift.service.chunked=false
|
||||
# EBXML webserver port
|
||||
ebxml.registry.webserver.port=8082
|
||||
# EBXML registry host
|
||||
|
|
Loading…
Add table
Reference in a new issue