Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Objective: Introduction to Dynamic Sequences with a Registry.

Code Block
languagehtml/xml
<definitions xmlns="http://ws.apache.org/ns/synapse">
    <registry provider="org.wso2.carbon.mediation.registry.ESBRegistry">
        <parameter name="root">file:./repository/samples/resources/</parameter>
        <parameter name="cachableDuration">15000</parameter>
    </registry>

    <sequence key="sequence/dynamic_seq_1.xml"/>
</definitions>
Prerequisites
  • Start the Synapse configuration numbered 9: wso2esb-samples -sn 9.
  • Start the Axis2 server and deploy the SimpleStockQuoteService if not already done.

...

Once ESB is started, execute the stock quote client as ant stockquote... You will notice that that ESB fetches the definition of the sequence from the registry and executes its rules as follows.

Code Block
languagebash
ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/

...