Page History
...
- You will need the sample FIX blotter that comes with Quickfix/J (Banzai). Configure the blotter to establish sessions with Synapse.
- Configure the AMQP transport for WSO2 ESB.
Start the AMQP consumer, by switching to
samples/axis2Client
directory and running the consumer using the following command. Consumer will listen to the queueQpidStockQuoteService
, accept the orders and reply to the queuereplyQueue
.Code Block ant amqpconsumer \-Dpropfile=$ESB_HOME/repository/samples/resources/fix/direct.properties
- Start Banzai.
- Enable FIX transport in the Synapse
axis2.xml
. - Configure Synapse for FIX samples.
Open up the <
ESB_HOMEHOME>/repository/samples/synapse_sample_260.xml
file and make sure that thetransport.fix.AcceptorConfigURL
property points to thefix-synapse.cfg
file you created. Once done, you can start the Synapse configuration numbered 260:wso2esb-samples.sh -sn 260
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.
...
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<ESB_HOMEHOME>/repository/samples/resources/fix
folder to $QFJ<QFJ_HOMEHOME>/etc folder
. Execute the sample applications from $QFJ<QFJ_HOMEHOME>/bin
, ./banzai.sh/bat ../etc/banzai.cfg executor.sh/bat ../etc/executor.cfg
.
...
In order to configure WSO2 ESB to run the FIX samples given in this guide, you will need to create some FIX configuration files as specified below (. You can find the config files from "$ESB_HOMEin the <ESB_HOME>/repository/samples/resources/fix folder.")
The FileStorePath
property in the following two files should point to two directories in your local file system. Once the samples are executed, Synapse will create FIX message stores in these two directories.
...
To enable the AMQP over JMS transport, you need to uncomment the JMS transport listener configuration. To enable AMQP over JMS for ESB, the <ESB_HOME>/repository/conf/axis2.xml
file must be updated, while to enable JMS support for the sample Axis2 server the <ESB_HOME>/samples/axis2Server/repository/conf/axis2.xml
file must be updated.
...
Locate and edit the AMQP connection settings file for the message consumer, this file is usually named direct.properties
and can be found in the <ESB_HOME>/repository/samples/resources/fix
directory.
...
Locate and edit the AMQP connection settings file for WSO2 ESB, this file is usually named conconn.properties
and can be found in the <ESB_HOME>/repository/samples/resources/fix
directory.
...