Child pages
  • Executing a Pre-Compiled Strategy
Skip to end of metadata
Go to start of metadata

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

Step-by-step guide

  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.

    Execute Strategy from a JAR
    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

    Start Strategy
    startModule;metc:strategy:system:vwapStrategy