JAVA/CORBA CLASSES

createReplica method
Example

Creates a replica of the current database at a new location.

Defined in

Database

Syntax

public Database createReplica(String server, String dbfile)
   throws NotesException

Parameters

String server


String dbfile
Return value

Database


Usage

If a database with the specified file name already exists, an exception is thrown.

The new replica has the same access control list as the current database.

Programs making remote (IIOP) calls to a server can't create or access databases on other servers. In these cases, the server parameter must correspond to the server the program is running on. There are two ways to do this:


Programs running on a workstation can access several different servers in a single program.

Language cross-reference

CreateReplica method in LotusScript NotesDatabase class

FileNewReplica @command of formula language

Example
See Also