try {
Session se = getSession();
AgentContext ac = se.getAgentContext();
Database db = ac.getCurrentDatabase();
DocumentCollection col = ac.getUnprocessedDocuments();
Document tmp = null;
Document doc = col.getFirstDocument();
while (doc != null) {
System.out.println( doc.getItemValueString("Subject") );
tmp = doc;
doc = col.getNextDocument();
tmp.recycle();
}
} catch(Exception e) {
e.printStackTrace();
}
You can call the Domino Objects from a Java program by importing the lotus.domino package. TheLotus Domino 7 Programming Guide, Volume 3: Java/CORBA Classes (http://www.ibm.com/developerworks/lotus/documentation/dominodesigner/70x.html?S_TACT=105AGX13&S_CMP=LPLOTUS)
program can be coded as an application, a Domino agent, an applet, or a servlet. Local calls access
run-time code on the local computer, which must have Domino installed. CORBA-based remote (IIOP)
calls access run-time code from a remote Domino server; in this case, the local computer need not have
Domino installed. Compilation must be on a computer with Domino Designer installed.
Note: Notes/Domino Release 7 supports the Sun Java(TM) 2 Platform, Technology Edition, v 1.4.2. To
avoid incompatibilities: do not run Java agents compiled under Release 7 on earlier Domino servers or
Notes clients; do not use Release 7 Java archives (Notes.jar, NCSO.jar, domtags.jar) on Java platforms
earler than v. 1.4.2.
mhmm dann hat er wohl auch wenig Ahnung von Notes ... was wiederum einigen Erklärt.