JAVA/CORBA クラス


例:getEnvironmentValue メソッド
1. 次のアプリケーションは、環境変数 $EnvNum の値を取得します。
2. 次のアプリケーションは、システム環境変数の値を取得します。

import lotus.domino.*;
class getenvval2 extends NotesThread
{
 public static void main(String argv[])
   {
       getenvval2 t = new getenvval2();
       t.start();
   }
 public void runNotes()
   {
   try
     {
       Session s = NotesFactory.createSession();
       Object tz = s.getEnvironmentValue("TimeZone", true);
       if (tz == null)
         System.out.println("No TimeZone");
       else
         System.out.println("TimeZone = " + tz);
     }
   catch (Exception e)
     {
       e.printStackTrace();
     }
   }
}

関連項目