The problem of getting ior by https

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值