JAVA/CORBA CLASSES


Examples: getIDFromServer method
This agent detaches the ID file for Annette LeBlanc from the Domino Directory on AceOne to d:\NotesAdministrator\aleblanc.id.

import lotus.domino.*;

public class JavaAgent extends AgentBase {

 public void NotesMain() {

   try {
     Session session = getSession();
     AgentContext agentContext = session.getAgentContext();

     // (Your code goes here)
     Registration reg = session.createRegistration();
     reg.setRegistrationServer("AceOne");
     reg.getIDFromServer(
       "Annette LeBlanc/AceHardwareNE/AceHardwareCertifier",
       "d:\\NotesAdministrator\\aleblanc.id",
       false);

   } catch(NotesException e) {
     System.out.println(e.id + " " + e.text);
     e.printStackTrace();
   }
 }
}

See Also