Versions Compared

Key

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

...

  • You will need the two sample FIX applications that come with Quickfix/J (Banzai and Executor). Configure the two applications to establish sessions with the ESB. 
  • Start Banzai and Executor.
  • Enable FIX transport in the Synapse axis2.xml
  • Configure Synapse for FIX samples. 
  • Open up the ESB_HOME/repository/samples/synapse_sample_257.xml file and make sure that transport.fix.AcceptorConfigURL property points to the fix-synapse.cfg file you created. Also make sure that transport.fix. InitiatorConfigURL property points to the synapse-sender.cfg file you created. Once done, you can start the Synapse configuration numbered 257: wso2esb-samples.sh -sn 257.

    Info
    titleNote

    The ESB creates a new FIX session with Banzai at this point.

  • Send an order request from Banzai to the ESB.

WSO2 ESB will create a session with an Executor and forward the order request. The responses coming from the Executor will be sent back to Banzai.

Code Block
languagehtml/xml
linenumberstrue
<!-- Using the FIX transport -->
<definitions xmlns="http://ws.apache.org/ns/synapse">
    <proxy name="FIXProxy" transports="fix">

        <parameter name="transport.fix.AcceptorConfigURL">file:/home/synapse_user/fix-config/fix-synapse.cfg</parameter>
        <parameter name="transport.fix.InitiatorConfigURL">file:/home/synapse_user/fix-config/synapse-sender.cfg</parameter>
        <parameter name="transport.fix.AcceptorMessageStore">file</parameter>
        <parameter name="transport.fix.InitiatorMessageStore">file</parameter>

        <target>
            <endpoint>
                <address uri="fix://localhost:19876?BeginString=FIX.4.0&amp;SenderCompID=SYNAPSE&amp;TargetCompID=EXEC"/>
            </endpoint>
	    <inSequence>
		<log level="full"/>
	    </inSequence>
            <outSequence>
                <log level="full"/>
				<send/>
            </outSequence>
        </target>
    </proxy>
</definitions>

...