JAVA/CORBA CLASSES


Examples: ServerName property
This agent prints the name of the server.

import lotus.domino.*;
public class JavaAgent extends AgentBase {
 public void NotesMain() {
   try {
     Session session = getSession();
     AgentContext agentContext = session.getAgentContext();
     // (Your code goes here)
     String u = session.getServerName();
     System.out.println("Server name = " + u);
   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also