• Java access to the Domino Objects, Part 1


    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:lotusdominoNotes.jar

    or

    set classpath=%classpath%;c:lotusdominodatadominojavaNCSO.jar

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

    (更多内容请看原文)

  • 相关阅读:
    Qt BarChart实践
    Qt Charts_Audio实践
    Qt 报错LINK2019:无法解析的外部符号
    Qt Charts实践
    Qt Qwdget 汽车仪表知识点拆解8 淡入效果
    因果图法设计测试用例
    Jsoup获取部分页面数据失败 Unhandled content type. Must be text/*, application/xml, or application/xhtml+xml
    loadrunner入门篇
    如何对jmeter设置IP欺骗
    jmeter录制移动端脚本
  • 原文地址:https://www.cnblogs.com/time-is-life/p/8985955.html
Copyright © 2020-2023  润新知