HomeSite Administration Connect Lotus Domino Server through Standalone Application with CORBA
Connect Lotus Domino Server through Standalone Application with CORBA
This article discusses Lotus Domino Notes, especially how to access to the documents stored in it with CORBA. This feature allow developers to write standalone applications that will use documents of Lotus. Moreover, the developer won't have to learn CORBA because the Lotus Domino Server has already mapped all interfaces, so we are pure users of an API. This article assumes you already have installed a Lotus Domino Server, configured the IIOP properly, and that you know how to create nsf database files.
Lotus Domino is a documental database server, which include additional services such as a web server, mail server, LDAP server for users, a client designer to make applications for Lotus Notes, and connectivity to other database management systems.
The API
First of all we have to configure Lotus Domino Server because it can accept IIOP requests. After this, we suppose we have already developed the database in Lotus Domino, (this article does not cover this topic), we have to download (from IBM site or see in resource link at the end of this article), the API to connect. The API called NCSO.jar or NCSW.jar. This API has classes and a lot of interfaces that represent all the objects and connections that we may have in a Lotus Notes.
Get the Database
The first step we take, is get a connection from database.
Session s = NotesFactory.createSession(Ip,Usr,Passwd); Database database = s.getDatabase("","firstfact.nsf");
We create a session object. To create it, we must specify the IP of the server, the username, and the password. After this, we must return an interface of the database we want to work -- in this case firstfact.nsf.