JAVA/CORBA クラス


例:ServerName プロパティ
次のエージェントは、サーバーの名前を出力します。

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();
   }
 }
}

関連項目