openByReplicaID (Database - Java)

Given a server name and a replica ID, opens the specified database, if it exists.

Note: This method is new with Release 6.5.

Defined in



public boolean openByReplicaID(String server, String replicaid)
    throws NotesException


String server

The name of the server on which the database resides. Use null to indicate a database on the current computer.

String replicaid

The replica ID of the database that you want to open.

Return value

  • true indicates that the replica was found and opened
  • false indicates that the replica was not found on the server, or could not be opened


Use Session.getDatabase(null, null) to instantiate an empty Database object.