Skip to content

Switch from FIX to AMQP

This example demonstrates how WSO2 Micro Integrator receives messages through FIX and forwards them through AMQP.

Synapse will forward the order request by binding it to a JMS message payload and sending it to the AMQP consumer. AMQP consumer will send a execution back to Banzai.

Synapse configuration

Following are the integration artifacts (proxy service) that we can used to implement this scenario.

<proxy name="FIXProxy" transports="fix">
    <target>
        <endpoint>
            <address uri="jms:/QpidStockQuoteService?transport.jms.ConnectionFactoryJNDIName=qpidConnectionfactory&amp;java.naming.factory.initial=org.apache.qpid.jndi.PropertiesFileInitialContextFactory&amp;java.naming.provider.url=repository/samples/resources/fix/con.properties&amp;transport.jms.ReplyDestination=replyQueue"/>
        </endpoint>
        <inSequence>
            <log level="full" />
        </inSequence>
        <outSequence>
            <property name="transport.fix.ServiceName" value="FIXProxy" scope="axis2-client" />
            <log level="full" />
            <send />
        </outSequence>
    </target>
    <parameter name="transport.fix.AcceptorConfigURL">
        file:repository/samples/resources/fix/fix-synapse.cfg
    </parameter>
    <parameter name="transport.fix.AcceptorMessageStore">file</parameter>
</proxy>
Top