From: https://www.ibm.com/developerworks/lotus/library/ls-Java_access_pt1/index.html

Overview

Java access to the Domino Objects is through the high-level package lotus.domino. The interfaces in this package are implemented in one of two other packages depending on the run-time environment:

  • lotus.domino.local to service the call from Notes/Domino software on the same computer
  • lotus.domino.cso to service the call from a Domino server accessed through a remote connection

For local access, the Java program runs on a computer with a Notes client or Domino server installed. The local classes are built with JNI (Java Native Interface) to access Notes/Domino binaries in the same process as the JVM (Java Virtual Machine).

For remote access the Java program requests the service from a Domino server using CORBA (Common Object Request Broker Architecture). The remote classes use CORBA to access the server over a TCP/IP network. Remote access is in two parts:

  • The client obtains the server's initial object as an IOR (Interoperable Object Reference) using the HTTP protocol.
  • The client obtains further objects over an IIOP connection.
Figure 1. Java remote access via HTTP and IIOP

The NotesFactory class in lotus.domino provides createSession and other methods for initiating access to the Domino Objects in Java applications and servlets. The particular signature determines whether the access is local or remote.

To compile a Java program that uses the lotus.domino package, the classpath must include Notes.jar (local) or NCSO.jar (remote). For example:

set classpath=%classpath%;c:\lotus\domino\Notes.jar

or

set classpath=%classpath%;c:\lotus\domino\data\domino\java\NCSO.jar

Notes.jar can be found in the program directory of any Notes/Domino installation. NCSO.jar can be found in the domino\java directory under the data directory in Domino Designer or the Domino server.

(更多内容请看原文)

最新文章

  1. JAVA基础中的注意点(二)
  2. web页面放到手机页面,缩放问题
  3. jdbc与 Beanshell PostProcessor 对多条结果的处理
  4. Android IOS WebRTC 音视频开发总结(七五)-- WebRTC视频通信中的错误恢复机制
  5. MVC @Html.DropDownListFor 默认值
  6. Gamit的安装
  7. 浅谈JavaScript中typeof与instanceof的区别
  8. Spark Structured streaming框架(1)之基本使用
  9. java程序调用xfire发布的webService服务(二)
  10. 安卓开发学习之Menu
  11. element-ui中 table表格hover 修改背景色
  12. 查看局域网中连接的主机名和对应的IP地址
  13. Jenkins 配置 Node.js 项目
  14. uitableview分组的数据2中方式
  15. Python3.5 学习十一
  16. C# MATLAB混合编程
  17. Mac设置Root密码
  18. [转]查找问题的利器 - Git Bisect
  19. 寻找完全数(C++)
  20. powershell for rename server name

热门文章

  1. PHP获取文件大小的方法详解
  2. poj3468
  3. jmeter打开其他设备转过来的历史脚本出现报错
  4. 078 Hbase中rowkey设计原则
  5. Scrapy项目结构分析和工作流程
  6. 最全Python爬虫总结(转载)
  7. Jetbrains 2018 等系列软件激活破解除去黄色警告框方法(含多个平台)
  8. python的os模块总结
  9. Web侦察工具HTTrack (爬取整站)
  10. Nginx 部署、反向代理配置、负载均衡