replicate (Database - Java)

Replicates a local database with its replica(s) on a server.

Defined in

Database

Syntax

public boolean replicate(String server)
    throws NotesException

Parameters

String server

The name of the server with which you want to replicate. Any replica of the source database that exists on the server will replicate.

Return value

boolean
  • true if the replication task runs without error
  • false if replication errors occur

Usage

Successful replication does not necessarily mean that documents replicate. The replication settings are honored. For example, if replication is temporarily disabled on one of the databases, the replication task runs without error but no documents actually replicate.

The source database must be local or an exception is thrown.

Example