A java agent has to upload a file in the background and return the Url of the uploaded file. While uploading, the agent has to report its progress.
I marked the agent to be "Run in background client thread.
I am stuck in the following dilemma:
- I can run the agent from Lotus Script and pass its parameters in an In-Memory file, but the client actually doesn't run in its own thread. Instead, it blocks the whole client.
- I can run the agent from a formula, but then I can't pass any parameters!
- If I use Lotus Script and take care of the threading on my own in Java, my thread doesn't even get started!
I've read that the Notes client doesn't support multithreading. But I can't make the agent RunOnServer because it is accessing a web server available only for the client.
This is related to another question of mine by the way.
Is there any better solution for this?