0

私は WSO2 ESB を使用して単純なメッセージ フローを実装しようとしていましたが、このトピックにあまり詳しくありません。

「消費者クライアントは、サービス プロバイダーと通信して乱数を取得します。」理想的には、乱数をクライアントだけでなく別のサービスにも送り返したいと思います。

  • 最初にカスタム プロキシ (http、https プロトコル) を定義しました。
  • InSequence: LOG メディエーター、Send Mediator;
  • 「RandomNumbers」と呼ばれる実際のサービスのエンドポイント (http://localhost:8280/services/RandomNumbers)
  • OutSequence: LOG メディエーター、SEND メディエーター
  • 障害シーケンス: 既存の障害

この実装が正しいかどうかを誰かが確認できますか? どうもありがとう

<proxy name="ClientAskNumber" transports="https http" startOnLoad="true" trace="disable">
        <target faultSequence="fault">
            <endpoint>
                <address uri="http://localhost:8280/services/RandomNumbers"/>
            </endpoint>
            <inSequence>
                <log/>
                <send/>
            </inSequence>
            <outSequence>
                <log/>
                <send/>
            </outSequence>
        </target>
    </proxy>
4

1 に答える 1

3

構成を修正しました。

 <proxy name="ClientAskNumber" transports="https http" startOnLoad="true"
        trace="disable">
        <target faultSequence="fault">
            <inSequence>
                <log level="full">
                    <property name="Insequence" value="***" />
                </log>
                <send>
                    <endpoint>
                        <address uri="http://localhost:8280/services/RandomNumbers" />
                    </endpoint>
                </send>
            </inSequence>
            <outSequence>
                <log level="full">
                    <property name="Outsequence" value="***" />
                </log>
                <send />
            </outSequence>
        </target>
    </proxy>
于 2012-08-09T17:59:58.350 に答える