openMailDatabase (DbDirectory - Java)

Opens the current user's mail database.

Defined in

DbDirectory

Syntax

public Database openMailDatabase()
    throws NotesException

Return value

Database

The opened database, or null if the database is not opened.

Usage

If the program runs on a workstation, openMailDatabase finds the current user's mail server and database in the notes.ini file.

If the program runs on a server, the current user is considered to be the last person who modified the agent (the agent's owner), and openMailDatabase finds the user's mail server and database in the Domino® Directory on the server.

If the program is making remote (IIOP) calls to a server, the current user is the user who created the session, and openMailDatabase finds the user's mail server and database in the Domino® Directory on the server.

Example