Hi , I am new to lotus notes and I am trying to create java application that will be able to connect to Notes client and read user contact or add a new contact to Notes client. I also need to be able to do the same thing with appointment in User Calendar.
The problem is i do not know where to start to look for example. What lib I need to develope this feature. Has anyone here ever tried to write something like that. If yes could you please post some code example and names of libs so I get some idea what to look for. Thanks everyone in advance for response.
Subject: COM?
Can Java use COM? If so, go here:
http://www-12.lotus.com/ldd/doc/domino_notes/6.5.1/help65_designer.nsf/Main?OpenFrameSet
Then search for “COM” and open the article “Accessing the Domino Objects through COM”.
Subject: RE: COM?
Not exactly, but the Java/CORBA stuff is essentially the same, so the reference is still valid. The Designer Help entry on “Running a Java Program” will be a big help. It might help our newbie to know, though, that “contacts” are held in the user’s names.nsf, and that the calendar is in their mail database. A translation of this code to its Java equivalent would handle adding calendar entries:
http://www-10.lotus.com/ldd/46dom.nsf/0/a07227cb1e81c41e85256c210061d7e7
Subject: RE: COM?
thanks Stan Rogers.Your code link gives me all required info.
Subject: RE: COM?
Thanks for your reply. The documentation is great, just what i need. I just have one question.I am confused between notes client and Domino server. If I will use the following code in VB on machine that has notes client installed what will the code access: Notes client or Domino server(I need to be able to access client) ?
Dim session As NotesSession
Set session =CreateObject(“Lotus.NotesSession”)
Subject: RE: COM?
Your code will access the Notes client if it’s installed on the workstation. However, if you need to access the server, you can. Any database access you do will have to include the server as a parameter; use “” for local databases (such as the user’s names.nsf to retrieve contacts), use the server’s name (available through Session.GetEnvironmentString) to get server-resident databases, such as the user’s mail database.