when executing a strategy on a Strategy Engine host without a JDK

Step-by-step guide

Add the steps involved:

  1. Create your strategy and its supporting classes and compile them into a JAR. Typically, this is easiest done with Maven. How to do this isn't covered here.
  2. Manually deploy the JAR to the Strategy Engine modules/jars directory
  3. Create the strategy from a Strategy Engine command file (you'll need to restart the Strategy Engine to invoke the new command file). Notice that this command is almost identical to the command to compile a strategy from source, you just omit the path to the strategy Java source file.

    createModule;metc:strategy:system;vwapStrategy,sample.VWAPStrategy,JAVA,,,false,metc:sink:system
  4. Start the strategy from the same command file, from Photon in the Strategy Engines View, or via the Strategy Engine Web Services API

    startModule;metc:strategy:system:vwapStrategy

 

Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.