I have a remote connection with DIIOP that I’m trying to use to connect to a database from an external java app. The DIIOP task was just set up on this server, so it’s possible that it is something to do with the server. I have author rights to the documents in the database, so I don’t think it is an access issue. The code I’m trying to run is very simple, since this is just a test to see if I can get what I need this way. Here, I’m just trying to get all of the documents and print out the value of items in the document
String server = “myserver.mydomain.com”;
Session s = NotesFactory.createSession(server, “my id”, “password”);
Database db = s.getDatabase(null, “db name”, false);
System.out.println(s.getCommonUserName() + “-” + db.getTitle());
DocumentCollection dc = db.getAllDocuments();
Document doc = dc.getFirstDocument();
while (doc != null) {
Vector items = doc.getItems();
Iterator it1 = items.iterator();
while (it1.hasNext()) {
Item item1 = (Item) it1.next();
System.out.println(item1.getName() + “-” + item1.getText(100));
}
}
It prints out the session user name and the name of the database. The call to doc.getItems() returns an empty vector. I have no idea why.
Anyone have this situation before? Any advice?
Thanks,
Steve