Replication with Infosphere CDC : IBM InfoSphere CDC for solidDB® reference : Configuring user exits : To configure a user exit for a Java class
  
To configure a user exit for a Java class
About this task
For Java class user exits, method names are predefined. This means that you can only enable and disable user exit programs. You need to configure a user exit in Java that implements the UserExitIF interface class provided by IBM InfoSphere CDC for solidDB®.
Procedure
1 Click Configuration > Subscriptions.
2 Select the subscription.
3 Click the Table Mappings view and select the table mapping.
4 Right-click and select Edit Mapping Details.
5 Click the User Exits tab.
6 Select Java Class from the User Exit Type list.
7 Type the name of the Java class user exit that implements the UserExitIF interface in the Class Name box.
For example, you may have imported the UserExitIF interface, and the user exit program class that implements this interface in your function has the following definition: public class UE1 implements UserExitIF
In the Class Name box, type:
Option
Description
UE1
If it is a stand-alone class
<Java package>.UE1
If the class is included in a Java package (for example, com.datamirror.interface.UE1)
The files you generate from compiling the user exit program must be located in a library or folder that is referenced by the CLASSPATH environment variable.
8 Type the parameters that you want to make available to the user exit program in the Parameter box.
You can access the parameters in the user exit program class by invoking the getParameter( ) method during the initialization process. There are no conventions for specifying the parameters. The values you type in this box are free-form. The string of parameter values cannot exceed 255 characters in length.
9 Type the name of the user exit programs you want IBM InfoSphere CDC to call beside one or more of the following operations:
Option
Description
Before Insert
IBM InfoSphere CDC runs the user exit before replicating an insert operation.
After Insert
IBM InfoSphere CDC runs the user exit after replicating an insert operation.
Before Update
IBM InfoSphere CDC runs the user exit before replicating an update operation.
After Update
IBM InfoSphere CDC runs the user exit after replicating an update operation.
Before Delete
IBM InfoSphere CDC runs the user exit before replicating a delete operation.
After Delete
IBM InfoSphere CDC runs the user exit after replicating a delete operation.
Before Refresh
IBM InfoSphere CDC runs the user exit before replicating a refresh operation.
After Refresh
IBM InfoSphere CDC runs the user exit after replicating a refresh operation.
Before Truncate
IBM InfoSphere CDC runs the user exit before replicating a truncate operation.
After Truncate
IBM InfoSphere CDC runs the user exit after replicating a truncate operation.
10 Click Apply.
See also
Configuring user exits