Enabling the custom business object handler class

The connector supports the custom business object handler class, CustomBOH. It implements the JDBCBOhandlerInterface interface. The syntax of this interface is:

public interface JDBCBOhandlerInterface{
    public int doVerbForCustom(CWConnectorBusObj busObj) throws
      VerbProcessingFailedException, ConnectionFailureException;
 }
 

When you implement the doVerbForCustom method, ensure that it throws but does not catch the two exceptions. Also set the status and message of each exception before throwing them.

To enable the connector to support this business object handler:

If the connector finds "CustomBOH=" in the verb application-specific information and finds the class in the com.crossworlds.connectors.JDBC package, it executes the custom business object handler. If it does not find CustomBOH, it throws an error saying that it could not find the class.

Copyright IBM Corp. 1997, 2004