JAVA/CORBA CLASSES


Examples: openAgentLog method
This agent opens the agent log and writes an action message to it.

import lotus.domino.*;
public class JavaAgent extends AgentBase {
 public void NotesMain() {
   try {
     Session session = getSession();
     AgentContext agentContext =
     session.getAgentContext();
     // (Your code goes here)
     Log log = session.createLog("Agent Log");
     log.openAgentLog();
     log.logAction("Action one");
     log.close();
   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also