This section aims to fast track all of the setup and configuration exercises, in the event this course is run in one day instead of two or that someone needs to catchup for some reason. We highly recommend that you take the time to at least read through the setup and recreate it, in you own time.
Verify the environment has been setup correctly. Java 7 must be installed and the JAVA_HOME environment variable can be set to the root of the Java installation. This is important as a number of Caplin components rely on this variable. You can check what JAVA_HOME is set to by running "set JAVA_HOME" on Windows and "printenv JAVA_HOME" on Linux.
The Java binary must also be present on the system path which can be checked using: "java -version"
Unzip the Deployment framework to a suitable folder. Note if following this step on Windows, it is vital that you unzip using the Cygwin command and not use the Windows Archive manager (or 7-zip) as the file encoding can be incorrect and cause script errors.
Copy the following release kits into the kits folder
All - CaplinManagementConsole-VERSION_NUMBER-kit.zip
To install these new components run
Once finished JMX funtionality needs to be enabled for the CMC to connect to Liberator and Transformer. These blades are built in so nothing needs to be copied into kits.
./dfw activate LiberatorJMX
./dfw activate TransformerJMX
We also need to create a CMC configuration file
and start the CMC
Then we can start the stack using
You should see the red boxes denoting Liberator and Transformer, turn blue in the CMC display indicating they are online. In your browser navigate to http://localhost:18080 and a Liberator page should load, clicking on "Status" should display some config information and the connected peers (Transformer)
You might have noticed in the startup of Liberator a message stating "Evaluation. Will shutdown in 30 minutes" this is because we are using the default 30min licenses. To prevent shutdown after 30mins we need to install a Development license.
Copy new versions of licence-rttp.conf and license-transformer.conf
Now the main components are working we can install the trading, permission and pricing integration adaptors. Copy the following files into the kits folder:
Before we install the new Permissioning service we must disable the default OpenPermissioning service.
./dfw deactivate OpenPermissioning
Once the new integration adaptors have been deployed they need to be configured with the host name by running:
./dfw hosts PricingAdapter localhost
./dfw hosts TradingAdapter localhost
./dfw hosts PermissioningAdapter localhost
Now everything installed and configured we can start up
There should be new boxes in CMC representing the three new integration adaptors. You will notice that the Trading DS will remain red. This is because it has not be able to connect to a backend pricing and trading system. We have supplied a mock trading backend that can be run using:
java -jar SimpleFXServer-supp.jar
The Trading peer should now connect to the backend and then connect to Liberator.
We have also supplied a very simple test application that can be used to interact with the system. To install it some files need to be unzipped into the htdocs folder of Liberator.
unzip the contents of testpage-supp.zip to kits/Liberator/latest/htdocs
It can be accessed using the url:
#Please note it is bad practice to modify anything in the kits folder manually as these changes can be lost when upgrading. Normally the client application would be served from an application server like Tomcat and not from Liberator.