Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. <int:gateway service-interface="de.embunit.booky.webgateway.integration.ServiceGateway"
  2. id ="jmsServiceGateway" default-reply-timeout="3000" default-request-timeout="3000">
  3. <int:method name="placeOrder"
  4. request-channel="cnlGatewayPlaceOrderRequest"
  5. reply-channel="cnlGatewayPlaceOrderResponse" />
  6. </int:gateway>
  7.  
  8. <int:chain input-channel="cnlGatewayPlaceOrderRequest" output-channel="cnlGatewayPlaceOrderResponse">
  9. <int:object-to-json-transformer content-type="application/json" />
  10. <jms:outbound-gateway request-destination="GATEWAY_PLACE_ORDER_REQUEST" request-pub-sub-domain="true" correlation-key="JMSCorrelationID"
  11. reply-destination="GATEWAY_PLACE_ORDER_RESPONSE" reply-pub-sub-domain="true"
  12. receive-timeout="3000" connection-factory="jmsConnectionFactory"/>
  13. <int:transformer id="idReplyTransformer" ref="replyTransformer" method="convert"/>
  14. </int:chain>
  15.  
  16. <jms:message-driven-channel-adapter id="jmsGatewayPlaceOrderRequest"
  17. destination="GATEWAY_PLACE_ORDER_REQUEST" channel="cnlGatewayPlaceOrderRequestCustGranted"
  18. acknowledge="auto" pub-sub-domain="true"
  19. connection-factory="jmsConnectionFactory"/>
  20.  
  21. <jms:outbound-channel-adapter id="jmsGatewayPlaceOrderResponse" pub-sub-domain="true"
  22. destination="GATEWAY_PLACE_ORDER_RESPONSE" channel="cnlGatewayPlaceOrderResponse"
  23. connection-factory="jmsConnectionFactory" />
  24.  
  25. <bean id="orderWorkflowProcessor" class="de.embunit.booky.warehouseservice.integration.WorkflowProcessor">
  26. <property name="jsonObjectMapper" ref="jackson2JsonObjectMapper"/>
  27. <property name="workflowEngineBuilder" ref="orderWorkflowEngineBuilder" />
  28. </bean>
  29.  
  30. <!--Service-->
  31. <int:chain input-channel="cnlGatewayPlaceOrderRequestCustGranted" output-channel="cnlGatewayPlaceOrderResponse">
  32. <int:service-activator id="orderWorkflowProcessor" ref="orderWorkflowProcessor" method="process" />
  33. </int:chain>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement