You must compile the sample Java™ class user exits before you run them.
- Stop CDC Replication.
- Unzip the samples.jar file into the
lib folder in your CDC Replication installation folder. Make sure you maintain
the folder structure when unzipping the jar file.
After unzipping the jar file, you will have a folder structure like the
following:
<installation_folder>\lib\com\datamirror\ts\target\publication\userexit\sample
- Make your changes to the sample user exit.
- Compile the modified user exit. For example, if you want to compile
UserExitSample.java, open a command window, navigate to the
lib folder and issue the following command:
javac -classpath ts.jar;. com\datamirror\ts\target\publication\userexit\sample\UserExitSample.java
If this command runs successfully, there will be no output on your screen.
Note: Your system must have the Java JDK to run this
command.
- After running the command successfully, navigate to the following directory
and confirm that you have created a UserExitSample.class file:
<installation_directory>\lib\com\datamirror\ts\target\publication\userexit\sample
- Start CDC Replication.
- The final step to configure the user exit is to specify the fully qualified
path to UserExitSample in Management Console. For example:
com.datamirror.ts.target.publication.userexit.sample.UserExitSample
Note: Do not specify the .class extension.
What to do next
For more information on how to specify Java class user exits in Management Console, see
your Management Console documentation.
Note: If you plan to use the sample user exits in production environments, you
will have to test the samples before they are deployed. IBM®
does not assume responsibility for adverse results caused by modified or customized user exit
classes.