是否可以在 Java 代理中使用来自 WEB-INF 目录的 Java 类 [英] Is it possible to use Java classes from the WEB-INF directory in Java agents

查看:24
本文介绍了是否可以在 Java 代理中使用来自 WEB-INF 目录的 Java 类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我正忙于一个全新的 XPage 项目.我使用 Java 和 Managed Beans 来访问数据.直到现在我不必使用 Lotusscript ;-)

Currently I am busy with a brand new XPages project. I use Java and Managed Beans to access the data. Till now I don't have to use Lotusscript ;-)

最后一件事是创建一个调度代理来执行一些后端工作.Java类中已经有一些逻辑,在WEB-INF目录下的一个目录中.我儿子不想将这些 Java 逻辑重写为 Lotusscript,而是重用.

One of the last things is to create a scheduled agent to perform some backend stuff. There is already some logic in Java classes, who are in a directory in the WEB-INF directory. I son't want rewrite these Java logic to Lotusscript, but reuse.

是否可以从(预定的)Java 代理访问这些 Java 类??

Is is possible to access these Java classes, from a (scheduled) Java agent??

推荐答案

也许是您的另一种选择.我将在星期一发布示例代码,如何在从 XPage 触发的 Domino 上使用 Eclipse 作业.这些作业可以代表当前用户运行.Eclipse 作业框架还允许安排它们.

Maybe another option for you. I'll post on Monday sample code how to use Eclipse jobs on Domino triggered from XPages. These jobs can run on behalf of the current user. The Eclipse jobs framework also allows scheduling them.

XPage 和您的 Eclipse 作业都在 http 进程中运行,您可以从 XPage 访问这些作业.换句话说,作业可以在 WEB-INF 目录中使用相同的代码.

Both XPages and your Eclipse jobs run in the http process and you can access the jobs from your XPages. In other words jobs can use the same code in the WEB-INF directory.

预告片:http://www.youtube.com/watch?v=uYgCfp1Bw8Q

更新:在此处发布示例 http://www.openntf.org/Internal/home.nsf/blogEntry.xsp?permaLink=NHEF-8SJB2R

Update: Posted the sample here http://www.openntf.org/Internal/home.nsf/blogEntry.xsp?permaLink=NHEF-8SJB2R

这篇关于是否可以在 Java 代理中使用来自 WEB-INF 目录的 Java 类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆