且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从Lotus Notes启动应用程序,然后保存到Lotus数据库中?

更新时间:2023-01-19 11:55:12

一种选择是让Notes代理启动Java应用程序,并允许Java应用程序异步运行.然后可以直接将其写入Notes数据库(使用Notes Java API).您可以将客户端配置为与Notes客户端共享凭证,因此身份验证不是问题(或者您可以让Java应用程序对Notes进行身份验证). Java API非常简单-它基本上模仿了LotusScript中可用的后端类.如果需要将结果写回到特定文档中,则可以从Notes代理将DocumentUniqueID(docid)传递给Java应用程序,然后在Java应用程序中使用它来写回. (请参见Database类中的GetdocumentByUnid方法.)

One option is to have the Notes agent start the Java app and allow the Java app to run asynchronously; it can then write directly into the Notes database (using the Notes Java API). You can configure the client to share credentials with the Notes client, so authenticating is not an issue (or you can have the Java app authenticate to Notes). The Java API is fairly straightforward - it basically mimics the back-end classes available in LotusScript. If you need to write resuls back into a specific document, you can pass the DocumentUniqueID (docid) to Java app from the Notes agent, and then use that within the Java app to write back. (See the GetdocumentByUnid method in the Database class).

这篇文章有点陈旧,但我认为仍然有意义: http://www.ibm.com/developerworks/lotus/library /ls-Java_access_pt1/index.html

This article is a bit old, but I think still relevant: http://www.ibm.com/developerworks/lotus/library/ls-Java_access_pt1/index.html