Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<proxy name="StockQuoteProxy"
transports="https http"
startOnLoad="true"
trace="disable">
<description/>
<target>
<inSequence>
<sequence key="delivery_seq"/>
</inSequence>
<outSequence>
<send/>
</outSequence>
</target>
<publishWSDL uri="file:repository/samples/resources/proxy/sample_proxy_1.wsdl"/>
</proxy>
<endpoint name="queueEP">
<address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
<endpoint name="StockQuoteFO">
<address uri="http://localhost:9000/services/SimpleStockQuoteService"</endpoint>
<sequence name="delivery_seq" onError="errorHandler">
<enrich>
<source type="envelope" clone="true"/>
<target type="property" property="mssg"/>
</enrich>
<send>
<endpoint key="StockQuoteFO"/>
</send>
</sequence>
<sequence name="SendResponse">
<header name="To" action="remove"/>
<property name="RESPONSE" value="true"/>
<send/>
</sequence>
<sequence name="errorHandler">
<makefault version="soap11">
<code xmlns:tns="http://www.w3.org/2003/05/soap-envelope" value="tns:Receiver"/>
<reason value="Message has been stored."/>
</makefault>
<clone>
<target sequence="SendResponse"/>
<target sequence="queueMessage"/>
</clone>
</sequence>
<sequence name="queueMessage">
<enrich>
<source type="property" clone="true" property="mssg"/>
<target type="envelope"/>
</enrich>
<property name="target.endpoint" value="queueEP"/>
<property name="FORCE_SC_ACCEPTED" value="true" scope="axis2"/>
<property name="OUT_ONLY" value="true"/>
<store messageStore="JMStore"/>
</sequence>
<messageStore class="org.apache.synapse.message.store.impl.jms.JmsStore"
name="JMStore">
<parameter name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter>
<parameter name="store.jms.cache.connection">false</parameter>
<parameter name="java.naming.provider.url">tcp://localhost:61616</parameter>
<parameter name="store.jms.JMSSpecVersion">1.1</parameter>
</messageStore>
<messageProcessor class="org.apache.synapse.message.processor.impl.forwarder.ScheduledMessageForwardingProcessor"
name="ScheduledProcessor"
messageStore="JMStore">
<parameter name="interval">20000</parameter>
<parameter name="is.active">true</parameter>
</messageProcessor>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.