awips2/edexOsgi/com.raytheon.uf.edex.registry.ebxml/res/spring/ebxml-thrift-client.xml
Max Schenkelberg e90bdb6fce Omaha #3541 Updated A2 baseline to reflect request service split
Change-Id: Iaa540397b6723a61841d93baf655be87701d9c93

Former-commit-id: e6b16ea30563c0afdd48822e8efc9faabadef8f0
2014-08-22 13:15:42 -05:00

41 lines
2 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">
<bean id="handlerRegistry" class="com.raytheon.uf.edex.requestsrv.HandlerRegistry" factory-method="getInstance"/>
<!-- TODO: Need better way of using plugin spring files, copy pasted from request-service spring XML files for WEB context -->
<bean id="binaryHttpBinding" class="com.raytheon.uf.edex.esb.camel.http.BinaryHttpBinding"/>
<bean id="serializingStreamExecutor" class="com.raytheon.uf.edex.requestsrv.serialization.SerializingStreamExecutor"
factory-method="getInstance"/>
<bean id="thriftStreamSerializer" class="com.raytheon.uf.edex.requestsrv.serialization.thrift.ThriftStreamSerializer"/>
<bean factory-bean="serializingStreamExecutor" factory-method="registerMultiple">
<constructor-arg ref="thriftStreamSerializer" />
<constructor-arg>
<list>
<value>thrift</value>
<value>application/thrift</value>
</list>
</constructor-arg>
</bean>
<bean id="limitingStreamExecutor" class="com.raytheon.uf.edex.requestsrv.serialization.ByteLimitingStreamExecutor">
<constructor-arg ref="serializingStreamExecutor"/>
<constructor-arg value="${edex.requestsrv.byteLimitInMB}"/>
<property name="limitOutput" value="false"/>
</bean>
<bean id="httpServiceExecutor" class="com.raytheon.uf.edex.requestsrv.http.HttpRequestServiceExecutor">
<!-- TODO: We are streaming to the HttpServletResponse directly in http service route, don't believe we need limiting anymore -->
<constructor-arg ref="limitingStreamExecutor"/>
</bean>
<bean factory-bean="handlerRegistry" factory-method="register">
<constructor-arg value="com.raytheon.uf.common.registry.IRegistryRequest"/>
<constructor-arg ref="edexRegistryManager"/>
</bean>
</beans>