Lotus Domino/Notes toolkits Overview (4) Java

Source: Internet
Author: User
4 toolkit for Java/CORBA

4.1 features

This is a for Java toolkit that can process data objects in the Notes database and have certain processing capabilities for data elements:

  • Data Processing

    • Document: Create, copy, modify, delete, and send (as an email)
    • View: it is equivalent to a record set and can be used to obtain the document or view display records.
    • Domain: new, modified, and deleted. Supports processing of RTF domains and attachments.
    • Database: new, copy, copy, and delete
  • ACL control
  • Design Elements
    • Attackers can obtain, run, and delete proxies.
    • View and form (including word form) can be retrieved and deleted)
    • You can create an outline and add multiple entries to the outline.

This toolkit is named toolkit for Java/CORBA because it uses different technologies to process local Notes databases and remote databases. But on the interface implemented by the program, the two are basically the same, so that the same code implementation can adapt to different environments and bring convenience for development.

Latest Version
V2.1 for r5.0.8, released on 2001.10.02
4.2 supported Domino objects and structures

For example:

4.3 access the local Notes application

Environment
Since you access the local Notes application, you have undoubtedly installed the Domino/Notes software. In this case, add the notes. jar file to classpath (automatically added in the Domino/Notes runtime environment ).
The program uses notes. ini to obtain the current user. If the user starts and enters the Notes client, the current user ID is set to allow the notes external program to share the identifier password, no need to enter the password again.

Working mechanism
When using a local Domino class from a Java program, the Code implemented in C ++ on the domino backend is actually accessed through the thin Java layer. Java uses the JNI mechanism to access the domino class in the Dynamic Linked Library. The Domino code is loaded into the JVM process.
From the performance perspective, this is the best option: it provides the fastest connection between Java and C code, and everything is in the same memory space.
However, Domino requires special processing for the initialization and termination of each thread (similar to C/C ++ API ).
The local Domino Object Library provides a class, Lotus. Domino. notesthread, to automatically complete the initialization and end processing. If notesthread is used instead of Java. Lang. thread to create a thread, all init/term calls required by Domino are automatically executed. At the same time, notesthread is derived from thread and does not reduce any features. If notesthread is used to create a thread, you need to call two static methods of the notesthread class: sinitthread () and stermthread () to complete initialization and end processing.
4.4 Access remote Domino applications

Environment
You only need to add ncso. jar to the classpath of the client. You do not need to install the Notes client or Domino.
The target Domino server needs to start the HTTP and diiop services.
In this case, Domino verifies the user identity based on the user name/password provided by the user.

Working mechanism
Domino uses the CORBA technology to implement Java program access to remote objects.
In this case, Java programs no longer need to access any domino C/C ++ code in the JVM process space, so they do not need to perform thread initialization or end processing. Therefore, session objects and database objects can be instantiated and reused using techniques similar to connection pools to improve access efficiency.
When the session object is closed, the system automatically closes various notes objects opened in the session, such as databases, views, and documents, and automatically releases the memory. When you do not close session objects, you must close these objects at any time (using the recycle method). Otherwise, the content occupied by these objects cannot be automatically released and reused, in severe cases, the system will crash.

In short, Lotus toolkit for Java/CORBA allows users to get rid of their dependencies on the Notes client and freely access the remote Domino server. At the same time, it has limited processing capabilities for objects other than the notes data, and the system security is relatively weak. Its performance is lower than that of C/C ++ APIs. We recommend that you use it when the network environment is secure and the data access speed is not very high.

Lotus Domino/Notes toolkits Overview (1)
Overview of Lotus Domino/Notes toolkits (2) c API
Lotus Domino/Notes toolkits Summary (iii) c ++ API
Lotus Domino/Notes toolkits Overview (4) Java
Lotus Domino/Notes toolkits Summary (5) lddj
Lotus Domino/Notes toolkits Summary (6) Others
Lotus Domino/Notes toolkits Summary (7) Analysis and Comparison
Overview of Lotus Domino/Notes toolkits (8) Analysis and Comparison
Lotus Domino/Notes toolkits Summary (9)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.