Skip to content

Instantly share code, notes, and snippets.

@raj-rajaratnam
Created June 23, 2015 14:52
Show Gist options
  • Select an option

  • Save raj-rajaratnam/b204ffee1907568de25a to your computer and use it in GitHub Desktop.

Select an option

Save raj-rajaratnam/b204ffee1907568de25a to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="StockQuoteProxy"
transports="http"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<inSequence>
<property name="OUT_ONLY" value="true"/>
<property name="sendToThisQueue" value="SimpleStockQuoteService"/>
<header name="To"
expression="fn:concat('jms:/', get-property('sendToThisQueue'), '?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&amp;java.naming.provider.url=tcp://localhost:61616')"/>
<send>
<endpoint name="dynamicQueue">
<default>
<timeout>
<duration>300000</duration>
<responseAction>fault</responseAction>
</timeout>
<suspendOnFailure>
<errorCodes>-1</errorCodes>
<initialDuration>0</initialDuration>
<progressionFactor>1.0</progressionFactor>
<maximumDuration>0</maximumDuration>
</suspendOnFailure>
<markForSuspension>
<errorCodes>-1</errorCodes>
</markForSuspension>
</default>
</endpoint>
</send>
</inSequence>
<outSequence>
<send/>
</outSequence>
</target>
<publishWSDL uri="file:repository/samples/resources/proxy/sample_proxy_1.wsdl"/>
<description/>
</proxy>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment