runOnServer method

Runs an agent that is in a server database on the computer containing the database.


Defined in

Agent


Syntax

public int runOnServer()
    throws NotesException

Return value

int
    Status of the operation where 0 indicates success.


Usage

The server cannot be on the computer on which the program is running. Use run to run agents that reside on the current computer.

For remote (IIOP) operations, the agent runs the server handling the remote calls the same as run and the return value is always 0.



See examples

See also
Accessing agents