J2LS -- call LS agent from Java web service

I found many discussions on calling Java web service from LS agent, but not the other way around.Is there a way to invoke a LS agent and pass a string parameter to it?

Please help!

Subject: J2LS – call LS agent from Java web service

  • All Domino Agents can accept URL arguments. Simply call the LS Agent from Java as if it were a web page, passing args in the URL, then have the Java read the response as if it were scraping a web page. Pass data back from the LS Agent is if it were outputting a web page, using simple Print statements.- Should work fine.

  • Hope this helps…

Subject: RE: J2LS – call LS agent from Java web service

Could you provide an example, please, in Java?

Subject: RE: J2LS – call LS agent from Java web service

In what environment is your Java code going to be executed? Your requirements are not clear to me.

If you can request any URL from inside the framework you’re working with, you can call an agent providing a URI like

http://server/path/db.nsf/agentname?OpenAgent&param1=value1&param2&value2

The LotusScript agent must be specifically written to retrieve and process those URL parameters, of course.

Subject: RE: J2LS – call LS agent from Java web service

The Java code is to be executed in a web service, to log results to another db (not the default server log). I have an agent that would do this but it needs to be invoked via URL w/ a string parameter.

If you could provide a sample script of how this could work, I’d really appreciate it!

Thanks,