Calling an Agent froma CL program

Is it possible to call or activate an agent from a CL program from the Iseries, on Domino running on a Windows server?

Thanks,

Dion

Subject: Calling an Agent froma CL program

I’m not aware of any way to do that directly.

We often have CL that sends specially crafted e-mails to trigger an agent. But more often we use the iSeries COM components to call CL/RPG from an agent.

I know you can call Java from RPG, so that may be an option.

Subject: Calling an Agent froma CL program

I don’t think you can call the agent directly from CL, but you can first create an LEI activity that runs this agent, then use the CL to call this LEI to indirectly run the agent.

HTH.

Subject: Calling an Agent froma CL program

Take a look at this Redbook: http://www.redbooks.ibm.com/abstracts/sg246592.html

You will find the CL command SBMDOMCMD which will submit a command to the Domino server. The command to submit would be:

tell amgr run “path/database.nsf” ‘agentname’

/Peter

Subject: RE: Calling an Agent froma CL program

The problem is Domino is not running on the iseries, it is running on a windows server, so the sbmdomcmd command does not work. Do you know if this is possible?

Subject: RE: Calling an Agent froma CL program

Sorry, I missed that one. Then I don’t know of a way to do this… Unless you can create an iSeries program that will get a webpage over HTTP, then you can trigger the agent through an agentname?openagent URL. Long shot, I know, but still…

/Peter