xpages-noob
xpages-noob

Reputation: 1579

Run XAgent using scheduled LotusScript or Java agent

Since there is no such thing as a scheduled server-side javascript agent, I want to use a scheduled LotusScript or Java agent to periodically call a XAgent, i.e. call the XAgent's url. In LotusScript, the code of the agent (initialize) looks like this:

Dim w As New NotesUIWorkspace
w.Urlopen "http://domain/db.nsf/XAgent.xsp"

When I directly call the XAgent's url (in the browser), it is executed succesfully. Yet, the XAgent is not executed when I call it using the agent above. Can anybody tell me what i'm doing wrong and/or provide another solution, like for example a Java agent?

Upvotes: 2

Views: 1756

Answers (1)

Egor Margineanu
Egor Margineanu

Reputation: 740

If you go for Java agent, you can always use java.net.* classes to open an URL, or use Apache HTTP client library. See http://docs.oracle.com/javase/6/docs/api/java/net/URL.html for reference.

Upvotes: 3

Related Questions