Customizing the Formatter Processor

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.

  1. 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.
  2. Compile the class and archive it to a .jar file.
  3. 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.

  4. Modify the application server environment to load the customized message formatter.
  5. Shut down and restart the application server.
Related tasks
Configuring an Application Server for a Custom Sender Processor or Formatter