Versions Compared

Key

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

...

  • Start the Axis2 server and deploy the SimpleStockQuoteService.
  • Download, install and start a JMS server, and configure ESB to listen on JMS.
  • Start the Synapse configuration numbered 250: wso2esb-samples.sh -sn 250.
Code Block
languagehtml/xml
<definitions xmlns="http://ws.apache.org/ns/synapse">
     <proxy name="StockQuoteProxy" transports="jms">
        <target>
            <inSequence>
                <property action="set" name="OUT_ONLY" value="true"/>
            </inSequence>
            <endpoint>
                <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
            </endpoint>
            <outSequence>
                <send/>
            </outSequence>
        </target>
        <publishWSDL uri="file:repository/samples/resources/proxy/sample_proxy_1.wsdl"/>
        <parameter name="transport.jms.ContentType">
            <rules>
                <jmsProperty>contentType</jmsProperty>
                <default>application/xml</default>
            </rules>
        </parameter>
    </proxy>

</definitions>

For this example we use ActiveMQ as the JMS provider. Once ActiveMQ is installed and started you should get a message as follows:

...