The ior content is a identification string for CORBA communication.It's consisted by sequence of hexadecimal digits. For IBM domino, the ior is necessary to a remote connection through DIIOP. We may get the ior content by http firstly then the application can interact with domino through diiop.
Generally, Notes api provide two kind of ways to get the ior content.One by http and another one by https. I find some interesting when I tried the two ways.
First, I get the ior by http directly and successfully, the code as below:
< String IorCot=null;
IorCot=NotesFactory.getIOR(serverName,userName,pwd);
... >
Then i want to get the content by https. I set the ssl status on http to 'disable' in notes administrator for comparation. The code as below:
< String IorCot=null;
String arg[] =new String[1];
arg[0] = "-HTTPEnableSSLSecurity";
IorCot=NotesFactory.getIOR(serverName, arg, userName, pwd);
..... >
It's failure just like i supposed because of the status of https is 'disable'.
Something interesting and confused happened when i merged the two fragment code together. I can get the ior content successfully by the way of https even if the ssl status is 'disable' in administrator.So I set a breakpoint between the two fragment code to debug and try to find the reason for this. I have the following steps to control the process:
1), Getting the ior successfully by http
2), Then 'tell http exit' in domino console
3), Continue to debug the code
4), The ior content can be got by https oddly even the http server has shut down.
I google it and test it again and again but without exact answer. I think maybe some local object of notes cache the status of connection or something others about this so i can get the ior after the http server is exit. I guess it's a issue on Notes api end.