使用 java 代理将笔记文档中的数据发布到 PHP 文件
Posting data from notes documents with java agent to PHP file
通过 Ibm notes,我得到了一个 Java 代理,它 post 将 50.000 条注释文档的字段发送到具有 PHP 文件的网站。它为每个文档执行一个 post。最终这个 PHP 文件对该文档做了一些工作。
几千个文档后,我的笔记崩溃了。在日志文件中我找不到任何东西。 Notes 不能处理这个吗?
您可能至少缺少一次对您正在使用的某些对象的 recycle()
方法的必要调用。参见 here。
并且还可以考虑为您切换使用 OpenNTF Domino API instead. (Actually, I think the github home for it is better for you to check out than the OpenNTF site.) One of the improvements it makes over the standard API from IBM is that it handles the recycling,这样您就不会遇到由 Notes C API 在 Java 层下面。
为了使用 Java 简化 Lotus Notes 开发,几年前我开始了一个开源项目,http://riverframework.org。
它支持原生 IBM Java 库和 OpenNTF Domino API。该框架也处理回收。由于时间关系,没能继续搞下去,不过最后一个版本是稳定的。我在实际项目中使用它。
HTH,
通过 Ibm notes,我得到了一个 Java 代理,它 post 将 50.000 条注释文档的字段发送到具有 PHP 文件的网站。它为每个文档执行一个 post。最终这个 PHP 文件对该文档做了一些工作。
几千个文档后,我的笔记崩溃了。在日志文件中我找不到任何东西。 Notes 不能处理这个吗?
您可能至少缺少一次对您正在使用的某些对象的 recycle()
方法的必要调用。参见 here。
并且还可以考虑为您切换使用 OpenNTF Domino API instead. (Actually, I think the github home for it is better for you to check out than the OpenNTF site.) One of the improvements it makes over the standard API from IBM is that it handles the recycling,这样您就不会遇到由 Notes C API 在 Java 层下面。
为了使用 Java 简化 Lotus Notes 开发,几年前我开始了一个开源项目,http://riverframework.org。
它支持原生 IBM Java 库和 OpenNTF Domino API。该框架也处理回收。由于时间关系,没能继续搞下去,不过最后一个版本是稳定的。我在实际项目中使用它。
HTH,