Switch from FIX to AMQP¶
This example demonstrates how ESB 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. The AMQP consumer will send an execution back to Banzai.
Synapse configuration¶
Following are the integration artifacts (proxy service) that we can used to implement this scenario. See the instructions on how to build and run this example.
<proxy name="FIXProxy" transports="fix" xmlns="http://ws.apache.org/ns/synapse">
<target>
<endpoint>
<address uri="jms:/QpidStockQuoteService?transport.jms.ConnectionFactoryJNDIName=qpidConnectionfactory&java.naming.factory.initial=org.apache.qpid.jndi.PropertiesFileInitialContextFactory&java.naming.provider.url=repository/samples/resources/fix/con.properties&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:/{file_path}/fix-synapse.cfg</parameter>
<parameter name="transport.fix.AcceptorMessageStore">file</parameter>
</proxy>
Build and Run¶
Create the artifacts:
- Set up ESB Integration Studio.
- Create an integration project with an ESB Configs module and an Composite Exporter.
- Create the proxy service with the configurations given above.
- Download the FIX transport resources from here and change the
{file_path}
of the proxy with the downloaded location. - Deploy the artifacts in your Micro Integrator.
Enable the FIX transport and start the Micro-Integrator.
Run the quickfixj Banzai sample application.
java -jar quickfixj-examples-banzai-2.1.1.jar
Send a sample request from Banzai to Synapse. Then the message count of the queue should be increased.
Top