Use the Jave API provided with RepConnector to create custom formatters that translate
replication events into other formats. RepConnector translates these replication events into XML
before delivering them.
- Create a class that implements either
com.sybase.connector.repra.rep.RepTransactionFormatter or
com.sybase.connector.repra.rep.RepraCustomTransactionFormatter.
RepraCustomTransactionFormatter allows the RepConnector
Manager to set and load a property page, while
RepTransactionFormatter does not.
- Compile the class and archive it to a .jar file.
- Use RepConnector Manager to add or modify a RepConnector connection where the inbound type is
“REPLICATION.”
-
On the General Information page, select Customized Plug-in
Class.
-
On the Plug-in Class Information page of the wizard, enter the name of the
custom class in the Message Formatter Plug-in Class field. If
RepraCustomTransactionFormatter is implemented, enter the
path to the property page and its name in the Message Formatter Properties File
field.
- Modify the application server environment to load the customized message formatter.
- Shut down and restart the application server.