management
Remote access Domino requires some configurations on the server. Computers running Domino must be accessible via TCP / IP protocol. In the network settings of your computer, you need to check the settings of the hostname and domain name in the TCP / IP property. Must be able to ping from the client's computer ping to the Internet name of the Domino server. For example, the host name of the server is MYHOST, the domain name is east.acme.com, and the server's Internet name is myhost.east.acme.com. The following command must be able to get a valid response:
> ping myhost.east.acme.com
In the Domino Directory (Names.nsf), the above Internet name must be entered in the "fully qualified Internet hostname" field of the server document.
Figure:
In an example in which the program, the server's Internet name is used for the first parameter of the CreateSession. You can also use the IP address of the server.
To perform remote access, on the Domino server, the DIIOP task must start. The HTTP task may also be started, depending on how the program gets the way. To confirm the port number used by HTTP and DIIOP, you can open the server document in the Domino directory to enter the "Internet Port" below, and you can see the currently used port number under the web tag and Diiop tab. By default, the port number of HTTP is 80, and the port number of DIIOP is 63148.
If you don't know the name of the database to be accessed, (for example, to use .GetfirstDatabase), you must have permission to browse the database. This permissions can be set under the Internet Protocol - HTTP tab, and "Allow HTTP Customer Browsing Database" to "Yes".
To ensure that HTTP and DIIOP tasks are launched on the server, you can add them to the servertasks parameter in the Notes.ini file. For example, there should be a line like this in notes.ini:
Servertasks = Update, Replica, Router, AMGR, Admin P, Calconn, Sched, DIIOP, HTTP, LDAP
If the server is started, you can start these two tasks with the following console commands:
> Load Http> Load Diiop
You can also use the following console command to stop these two tasks:
> Tell Http Quit> Tell Diiop Quit
Use this command to update the settings of DIIOP tasks:
> TELL DIIOP REFRESH
Use this command to restart the HTTP task:
> Tell Http Restart
Get IOR
On the Domino server, IOR is a file called diiop_ior.txt, which is located in the Domino / HTML subdirectory in the Domino data directory. The IOR is an encoded string that contains identification information for CORBA access to the server. The client will decode the IOR string and use it to create a remote connection.
By default, the remote client requests IOR via a web service and then performs a session request via a DIIOP port. These two requests can be performed separately. E.g:
String iOR = notesfactory.getior ("myhost.east.acme.com"); // Get IOR Using Web Server Port Session S = NotesFactory.CreateSessionWithior (IOR); // Create Session Using Diiop Port is equivalent to: session s = NotesFactory.createSession ("MyHost.east.Acme.com");
In the call of NotesFactory, you can add a colon and port number after the host name is added to the port number to specify the port used to get the IOR. Through this mechanism, IR can be acquired through the DIIOP port without passing through the HTTP port. E.g:
String iOR = notesfactory.getior ("myhost.east.acme.com: 63148"); // Get IOR Using Diiop Port Session S = NotesFactory.CreateSessionwithior (IOR); // Create Session Using Diiop Port
It can also be simplified to:
Session s = notesfactory.creatession ("myhost.east.acme.com: 63148");
Note You cannot use DIIOP ports to get other files other than Diiop_ior.txt.
If you get the IOR, the web service must allow anonymous access by the web service port. Open the server document, in the Port - "Internet Port" - "Web" label, "Anonymous" authentication options are set to "Yes".
Get the iOR for the DIIOP port to new features of Notes / Domino 6. This allows you to allow anonymous access to the HTTP service, or you don't have to start the HTTP service.
I can also get IOR by other methods, then use CreateSssoInwithior. For example, you can copy Diiop_ior.txt files directly from the server's computer to your client. If there is a valid Diiop_ior.txt on the client, you can establish a remote connection with the server with the server:
import lotus.domino *; import java.io. *; public class platformior {public static void main (String argv []) {try {FileInputStream fin = new FileInputStream ( "c:. // Lotus // NotesR6 // diiop_ior. txt "); InputStreamReader fisr = new InputStreamReader (fin); BufferedReader br = new BufferedReader (fisr); String ior = br.readLine (); fin.close (); Session s = NotesFactory.createSessionWithIOR (ior); // Operational Cody Goes Here} Catch (Exception E) {E.PrintStackTrace ();}}} Note IOR may change. The following movements will make the original diiop_ior.txt:
Change the DIIOP port number to enable or disable a DIIOP port to change the TCP / IP address of the server
The last item can avoid: Open the server document, under the Internet Protocol - Diiop tab, specify the server's Internet hostname in the Host Name / Address domain.
This enforces DIIOP_IOR.TXT to use the host name instead of the IP address. In this way, the IOR will not change as long as the host name does not change. You can also use the NOTES.INI parameter diiopiorhost to force the host name.
(Source IBM official website)