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); DateTime dt = session.createDateTime("Today"); dt.setNow(); dt.adjustHour(-3); Database db = dir.openDatabaseIfModified("names", dt); if (db != null) System.out.println("Database opened"); else System.out.println( "Database not modified in past 3 hours"); } catch(Exception e) { e.printStackTrace(); } } }
See Also