简体   繁体   English

WSO2 ESB可靠消息传递

[英]WSO2 ESB reliable messaging

I have tried this sample " https://docs.wso2.com/display/ESB470/Sample+102%3A+Reliable+Message+Exchange+with+Back-End+Server+Using+WS-ReliableMessaging+1.1 ", and unfortunaly I couldn't understand the config explained in this sample. 我已经尝试过此示例“ https://docs.wso2.com/display/ESB470/Sample+102%3A+Reliable+Message+Exchange+with+Back-End+Server+Using+WS-ReliableMessaging+1.1 ”,并且不幸的是,我无法理解此示例中说明的配置。 the config is: 配置是:

<definitions xmlns="http://ws.apache.org/ns/synapse">
<in>
    <RMSequence single="true" version="1.1"/>
    <send>
        <endpoint name="reliable">
        <address uri="http://localhost:9000/services/ReliableStockQuoteService">
        <enableRM/>
        <enableAddressing/>
            </address>
        </endpoint>
    </send>
</in>
<out>
    <header name="wsrm:SequenceAcknowledgement" action="remove"
            xmlns:wsrm="http://docs.oasis-open.org/ws-rx/wsrm/200702"/>
    <header name="wsrm:Sequence" action="remove"
            xmlns:wsrm="http://docs.oasis-open.org/ws-rx/wsrm/200702"/>
    <header name="wsrm:AckRequested" action="remove"
            xmlns:wsrm="http://docs.oasis-open.org/ws-rx/wsrm/200702"/>
    <send/>
</out>

There is no place that explain where to use this config. 没有地方可以解释在哪里使用此配置。 What is the definitions tag? 什么是definitions标签? What are in and out tags? 什么是inout标签?

I have tried this proxy service to invoke a reliabl-messaging enabled backend. 我已经尝试过此代理服务来调用启用了reliabl消息传递的后端。

<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
       name="reliableClient"
       transports="https,http"
       statistics="disable"
       trace="disable"
       startOnLoad="true">
   <target>
      <inSequence>
         <RMSequence single="true" version="1.0"/>
         <send>
            <endpoint>
               <wsdl service="reliableBackEnd"
                     port="reliableBackEndHttpSoap11Endpoint"
                     uri="http://localhost:9763/services/reliableBackEnd?wsdl">
                  <enableAddressing/>
                  <enableRM/>
               </wsdl>
            </endpoint>
         </send>
      </inSequence>
      <outSequence>
         <header xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"
                 name="wsrm:SequenceAcknowledgement"
                 action="remove"/>
         <header xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"
                 name="wsrm:Sequence"
                 action="remove"/>
         <header xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"
                 name="wsrm:AckRequested"
                 action="remove"/>
         <send/>
      </outSequence>
   </target>
   <description/>
</proxy>

but it is getting time out. 但时间到了。 the backed is hosting in the same ESB 4.8.1, with default RM-Policy enabled. 支持者托管在同一ESB 4.8.1中,并启用默认的RM-Policy。

@Reza, @Reza,

definitions tag is the root tag of the ESB synapse config. definitions标记是ESB突触配置的根标记。 Under the definitions tag, all the synapse artifact related configs such as proxy services, sequences, and etc are included. 在definitions标签下,包括了所有与突触工件相关的配置,例如代理服务,序列等。

Also regarding the sample you are referring,you are referring to an older version of 4.7.0 and make sure you have enabled nhttp transport. 另外,对于您所引用的示例,您所指的是4.7.0的旧版本,并确保已启用nhttp传输。 Instead of using the older version, I would like to suggest you use a newer version. 我建议您使用较新的版本,而不要使用较旧的版本。 Please refer [1], a nice article written by Buddhima. 请参考[1],这是Buddhima撰写的一篇不错的文章。

[a] https://buddhimawijeweera.wordpress.com/2015/09/05/reliable-messaging-with-wso2-esb/ [a] https://buddhimawijeweera.wordpress.com/2015/09/05/reliable-messaging-with-wso2-esb/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM