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); System.out.println("Local templates\n"); Database db = dir.getFirstDatabase (DbDirectory.TEMPLATE); while (db != null) { System.out.println(db.getTemplateName()); db.open(); System.out.println("Last modified: " + db.getLastModified().getLocalTime()); db = dir.getNextDatabase(); } } catch(Exception e) { e.printStackTrace(); } } }
See Also