IsOnServer (Session - Java)

Read-only. Indicates whether the session is running on a server.

Defined in

Session

Data type

boolean

Syntax

public boolean isOnServer()
    throws NotesException

Legal values

  • true if the program is running on a server
  • false if the program is running on a workstation

Usage

A remote (IIOP) session always runs on a server.

A local session is running on a server if it is an agent in a server-based database, and the agent has one of the following triggers:

  • When new mail arrives
  • When documents have been created or modified
  • When documents have been pasted
  • On schedule hourly, daily, weekly, or monthly

All other programs run on a workstation.

Example