Administration Console Online Help

Previous Next Open TOC in new window
Content starts here

Register a failover callback handler


You can register a callback handler for a multi data source with WebLogic Server that controls when a multi data source with the Failover algorithm fails over to the next data source in the data source list. You can use callback handlers to control if or when the failover occurs so that you can make any other system preparations before the failover, such as priming a database or communicating with a high-availability framework. For more information, see Controlling Multi Data Source Failover with a Callback.

To register a failover callback handler for a JDBC multi data source:

  1. If you have not already done so, in the Change Center of the Administration Console, click Lock & Edit (see Use the Change Center).
  2. In the Domain Structure tree, expand Services, then select Data Sources.
  3. On the Summary of Data Sources page, click the multi data source name.
  4. Select the Configuration: General tab.
  5. In Failover Callback Handler, enter the absolute name of the failover callback handler.

    The failover callback handler must implement the weblogic.jdbc.extensions.ConnectionPoolFailoverCallback interface.

  6. Click Save to save the JDBC multi data source configuration.
  7. To activate these changes, in the Change Center of the Administration Console, click Activate Changes.
    Not all changes take effect immediately—some require a restart (see Use the Change Center).

Back to Top