plugin Change-Id: I8fcd61af003366405b4b40661bb7e471bf03c64a Former-commit-id:33fb2c2e0d
[formerly40d1fda798
] [formerlyf086bb0c9b
] [formerlyceec3d48f0
[formerlyf086bb0c9b
[formerly e2feed87185e15d9e681ca0155b03d1d9ff29e25]]] Former-commit-id:ceec3d48f0
Former-commit-id: d97211d5385681fec6abca63498e85889f803dd8 [formerly715932091e
] Former-commit-id:dfe50ee038
36 lines
1.5 KiB
XML
36 lines
1.5 KiB
XML
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
|
|
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
|
|
|
|
<bean id="pythonThreadPool" class="com.raytheon.edex.productsrv.PythonExecThreadPool"
|
|
factory-method="getInstance" >
|
|
<property name="maxSize" value="50" />
|
|
</bean>
|
|
|
|
<bean id="uEngine" class="com.raytheon.edex.services.ProductSrv" />
|
|
|
|
<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&chunked=false&httpBindingRef=#binaryHttpBinding" />
|
|
<endpoint id="uEngineHttpJaxb_from"
|
|
uri="jetty:http://0.0.0.0:${HTTP_PORT}/services/pyproductjaxb" />
|
|
|
|
<!-- UEngine routes -->
|
|
<route id="uEngineHttpThrift" streamCache="false">
|
|
<from uri="ref:uEngineHttpThrift_from" />
|
|
<removeHeaders pattern="CamelHttp*" />
|
|
<bean ref="uEngine" method="executePython" />
|
|
<bean ref="serializationUtil" method="transformToThrift" />
|
|
</route>
|
|
<route id="uEngineHttpJaxb" streamCache="false">
|
|
<from uri="ref:uEngineHttpJaxb_from" />
|
|
<removeHeaders pattern="CamelHttp*" />
|
|
<bean ref="uEngine" method="executePython" />
|
|
<bean ref="serializationUtil" method="marshalToXml" />
|
|
</route>
|
|
|
|
</camelContext>
|
|
|
|
</beans>
|