How to call a java shared script library from a Java agent in Xpages?
问题 I have an agent that is set to run every day at 8:00 I want to write a java code (in a shared library) and call that library from the agent with parameters. For Example: Agent code: // .... checkAndSendMail(email_1); checkAndSendMail(email_2); // .... java library code: public class Check{ public void checkAndSendMail(String email_param){ // ... mail.send(email_param); // ... } } Can I call a java shared script library from a Java agent in Xpages? if yes, then how to call? 回答1: You can do