JAVA/CORBA クラス


例:createReplica メソッド
次のエージェントは、現在使用中のコンピュータ上で notesua1 から Domlog.nsf ファイルのレプリカを作成します。

import lotus.domino.*;
public class JavaAgent extends AgentBase {
 public void NotesMain() {
   try {
     Session session = getSession();
     AgentContext agentContext =
         session.getAgentContext();
     // (Your code goes here)
     Database db =
        session.getDatabase("notesua1", "Domlog");
     String title = db.getTitle();
     Database replica = db.createReplica(null, "Domlog");
     System.out.println
     ("Database \"" + title + "\" has a new local replica");
   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

関連項目