Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <int:gateway service-interface="de.embunit.booky.webgateway.integration.ServiceGateway"
- id ="jmsServiceGateway" default-reply-timeout="3000" default-request-timeout="3000">
- <int:method name="placeOrder"
- request-channel="cnlGatewayPlaceOrderRequest"
- reply-channel="cnlGatewayPlaceOrderResponse" />
- </int:gateway>
- <int:chain input-channel="cnlGatewayPlaceOrderRequest" output-channel="cnlGatewayPlaceOrderResponse">
- <int:object-to-json-transformer content-type="application/json" />
- <jms:outbound-gateway request-destination="GATEWAY_PLACE_ORDER_REQUEST" request-pub-sub-domain="true" correlation-key="JMSCorrelationID"
- reply-destination="GATEWAY_PLACE_ORDER_RESPONSE" reply-pub-sub-domain="true"
- receive-timeout="3000" connection-factory="jmsConnectionFactory"/>
- <int:transformer id="idReplyTransformer" ref="replyTransformer" method="convert"/>
- </int:chain>
- <jms:message-driven-channel-adapter id="jmsGatewayPlaceOrderRequest"
- destination="GATEWAY_PLACE_ORDER_REQUEST" channel="cnlGatewayPlaceOrderRequestCustGranted"
- acknowledge="auto" pub-sub-domain="true"
- connection-factory="jmsConnectionFactory"/>
- <jms:outbound-channel-adapter id="jmsGatewayPlaceOrderResponse" pub-sub-domain="true"
- destination="GATEWAY_PLACE_ORDER_RESPONSE" channel="cnlGatewayPlaceOrderResponse"
- connection-factory="jmsConnectionFactory" />
- <bean id="orderWorkflowProcessor" class="de.embunit.booky.warehouseservice.integration.WorkflowProcessor">
- <property name="jsonObjectMapper" ref="jackson2JsonObjectMapper"/>
- <property name="workflowEngineBuilder" ref="orderWorkflowEngineBuilder" />
- </bean>
- <!--Service-->
- <int:chain input-channel="cnlGatewayPlaceOrderRequestCustGranted" output-channel="cnlGatewayPlaceOrderResponse">
- <int:service-activator id="orderWorkflowProcessor" ref="orderWorkflowProcessor" method="process" />
- </int:chain>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement