Code sample

See the $REPRA_HOME/sample/client/MyMsgGenerator.java file for an example for the customized AE message generator class.

StepsCompiling the customized message generator

  1. Change to the location of your message generator:

    cd /work/custom
    
  2. Use the Java compiler to define the -classpath parameter with the required libraries to compile the customized class. For example:

    mkdir customclasses<enter>
    
    /usr/jdk141/bin/javac -classpath .:/opt/sybase/EAServer/repra/lib/repraconn.jar <enter>
    
    -d customclasses com/mycompany/MyMsgGenerator.java
    

StepsVerifying the compilation

  1. If the compilation command finishes without any error messages, go to the customclasses directory.

  2. Verify that MyMsgGenerator.class exists in com/mycompany.

  3. If MyMsgGenerator.class is not in com\mycompany, or if the compilation finished with errors, review the design.