I need to pull-in Notes email for multiple users from various Domino servers. The solution needs to support a highly scalable server environment so that email for thousands of Notes Ids from hundreds of Domino servers can be pulled-in simultaneously.
I’m using Lotus C++ API for Windows for this application and running into the restriction for one Notes-ID session per process (referenced below).
Questions:
What is the best interface/API to use that will allow me to access email for multiple Notes Ids simultaneously?
How do I get around the one Notes-Id session per process restriction in Lotus API?
Any and all help will be much appreciated!
Regards,
IP
PS: Here is the reference for the given restriction in Lotus C++ API User Guide
Note that your API program can’t switch to a different ID or initialization file after Notes has been initialized. To switch ID or initialization files during the course of a program, call LNNotesSession::Init and Term multiple times, specifying different .ini files for each session. Remember that you can have only one session active at any time, so before initializing a new session, you must terminate the current one.
Subject: Lotus C++ API – how do I create multiple Notes sessions for different Notes IDs
Do you mean you want to scan mail databases for their content and then do something with that content (for example: scan it for keywords, copy it to a central db, or something similar)?
If this is what you’re trying to do you don’t need the ID of the mail database owner to read their mail as long as the session authority (under which your code runs) has access to the mail databases being scanned (via an admin group, or similar, within their ACLs).
Admittedly if you want to scan or process encrypted mails then you may need the original ID but you might find that only a few mails per database are encrypted and you could handle these on an exception basis (you could still copy the mails but won’t be able to interrogate their content automatically).
If you want any more suggestions let us know a bit more detail about what you’re trying to achieve…