Refer to the $REPRA_HOME/sample/client/MyMsgGenerator.java (UNIX) or %REPRA_HOME%\sample\client\MyMsgGenerator.java (Windows) file for an example for the customized AE message generator class where $REPRA_HOME and %REPRA_HOME% are the directories of the RepConnector installation.
Compiling the customized message generator
Change directory to the location of your message generator.
On Windows:
cd C:\work\custom
On UNIX:
cd /work/custom
Use the Java compiler to define the -classpath parameter with the required libraries to compile the customized class. For example:
On Windows, enter:
md customclasses <enter>
c:\jdk141\bin\javac -classpath .; C:\sybase\ EAServer\repra\lib\repraconn.jar
-d customclasses com\mycompany\MyMsgGenerator.java
On UNIX, enter:
mkdir customclasses<enter>
/usr/jdk141/bin/javac -classpath .:/opt/sybase/EAServer/repra/lib/repraconn.jar <enter>
-d customclasses com/mycompany/MyMsgGenerator.java
Verifying the compilation
If the compilation command finishes without any error messages, go to the customclasses directory.
Verify that MyMsgGenerator.class is under com\mycompany (Windows) or com/mycompany (for UNIX).
If the MyMsgGenerator.class is not under com\mycompany or the compilation finished with errors, review the design or see your SDK designer/developer.