JAVA/CORBA CLASSES
import lotus.domino.*; public class JavaAgent extends AgentBase { public void NotesMain() { try { Session session = getSession(); AgentContext agentContext = session.getAgentContext(); // (Your code goes here) DbDirectory dir = session.getDbDirectory(null); Database db = dir.getFirstDatabase(DbDirectory.DATABASE); while (db != null) { // Database must be open try { db.open(); } catch(NotesException ne) { System.out.println(db.getFilePath() + " - could not open"); continue; } DateTime fix = db.getLastFixup(); System.out.println(db.getFilePath() + " - last fixup " + fix.getLocalTime()); db = dir.getNextDatabase(); } } catch(Exception e) { e.printStackTrace(); } } }
See Also