All docs This doc

Versions Compared

Key

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

...

Code Block
languagehtml/xml
linenumberstrue
<definitions xmlns="http://ws.apache.org/ns/synapse">
<proxy xmlns="http://ws.apache.org/ns/synapse" name="StockQuoteProxy"  <proxy nametransports="http https" startOnLoad="StockQuoteProxytrue">
    <description/>
     transports="http"<target>
        <inSequence>
            <property name="OUT_ONLY" value="true"/>
            <property  startOnLoadname="FORCE_SC_ACCEPTED" value="true" scope="axis2"/>
         trace="disable">   <property name="transport.jms.ContentTypeProperty" value="Content-Type" scope="axis2"/>
            <description/><send>
       <target> 			<!-- Send message to WSO2 MB -->  <endpoint>
       <endpoint>             <address uri="jms:/myqueue?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory&amp;java.naming.provider.url=repository/conf/jndi.properties&amp;transport.jms.DestinationType=queue"/>
                </endpoint>
         <inSequence>   </send>
        </inSequence>
   <property name="OUT_ONLY" value="true"/>     <outSequence>
            <property name="FORCETRANSPORT_SC_ACCEPTEDHEADERS" valuescope="trueaxis2" scopeaction="axis2remove"/>
            <property name="transport.jms.ContentTypeProperty"<send/>
        </outSequence>
    </target>
</proxy>
<proxy xmlns="http://ws.apache.org/ns/synapse" name="StockQuoteProxyConsumer" transports="jms" startOnLoad="true">
    value="Content-Type"<description/>
    <target>
        <inSequence>
            <property  scopename="OUT_ONLY" value="axis2true"/>
         </inSequence>   <log level="full">
     <outSequence>
            <property name="TRANSPORT_HEADERSSubscriber" scopevalue="axis2" action="removeI am Subscribed to messages coming to StockQuoteProxy."/>
            <send/></log>
            <<drop/outSequence>>
        </target>inSequence>
   </proxy>    <sequence name="fault"> <outSequence>
      <log level="full">     <send/>
    <property name="MESSAGE" value="Executing default &#34;fault&#34; sequence"/> </outSequence>
    </target>
    <property<parameter name="ERROR_CODE" expression="get-property('ERROR_CODE')"/>transport.jms.DestinationType">queue</parameter>
    <parameter name="transport.jms.Destination">myqueue</parameter>
    <parameter name="transport.jms.ContentType">
     <property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')"/>   <rules xmlns="">
       </log>     <jmsProperty>contentType</jmsProperty>
      <drop/>    </sequence>   <default>application/xml</default>
<sequence name="main">       <log</>rules>
    </parameter>
 <drop/>   <parameter name="transport.jms.ConnectionFactory">myQueueConnectionFactory</parameter>
</sequence>proxy>
</definitions>



Simulating the sample scenario

...