...
Info | ||
---|---|---|
| ||
|
...
- Start Banzai and Executor using the custom configuration files.
- Enable FIX transport in the Synapse
axis2.xml
. - Configure Synapse for FIX samples. We will be using two custom configuration files for Synapse in this sample. These two custom configuration files can be found at
ESB_HOME/repository/conf/samplesamples/resources/fix
directory. The two files are calledfix-synapse-m40.cfg
andsynapse-sender-m.cfg
. You can point your Synapse configuration to these two files (this is already done in the suppliedsynapse_sample_261.xml
file) or you may create copies of them and point the Synapse configuration to the copies. In either case, make sure that the properties likeFileStorePath
andFileLogPath
in the two files point to valid locations in your local file system. Open up the
$ESB_HOME/repository/samples/synapse_sample_261.xml
file and make sure thattransport.fix.AcceptorConfigURL
property points to thefix-synapse-m40.cfg
file described above andtransport.fix.InitiatorConfigURL
points to thesynapse-sender-m.cfg
file described above. Once done you can start the Synapse configuration numbered 261: i.e.wso2esb-samples.sh -sn 261
Info title Note Synapse creates a new FIX session with Banzai at this point.
- Send an order request from Banzai to Synapse. For example, Buy DELL 1000 @ MKT.
Code Block | ||||
---|---|---|---|---|
| ||||
<definitions xmlns="http://ws.apache.org/ns/synapse"> <proxy name="OrderProcesserProxy41" transports="fix"> <target> <endpoint> <address uri="fix://localhost:19877?BeginString=FIX.4.1&SenderCompID=SYNAPSE&TargetCompID=EXEC"/> </endpoint> <inSequence> <log level="full"/> </inSequence> <outSequence> <log level="full"/> <send/> </outSequence> </target> <parameter name="transport.fix.AcceptorConfigURL">file:repository/conf/samplesamples/resources/fix/fix-synapse-m40.cfg</parameter> <parameter name="transport.fix.AcceptorMessageStore">file</parameter> <parameter name="transport.fix.InitiatorConfigURL">file:repository/confsamples/sample/resources/fix/synapse-sender-m.cfg</parameter> <parameter name="transport.fix.InitiatorMessageStore">file</parameter> </proxy> </definitions> |
...
You can pass the new configuration file as a command line parameter too, in that case you do not need to modify the quickfixj-examples.jar
. You can copy the config files from $ESB_HOME/repository/confsamples/sample/resources/fix
folder to $QFJ_HOME/etc folder
. Execute the sample apps from $QFJ_HOME/bin
, ./banzai.sh/bat ../etc/banzai.cfg executor.sh/bat ../etc/executor.shcfg
.
Locate and edit the FIX configuration file of Executor to be as follows. This file is usually named executor.cfg
.
...