Can a method be triggered for a specific client?

I want to create a batch processor solution that is capable of triggering a method for a specific client. Is this possible? If so, how? How would I even be able to reference a specific client? A few posts make mention that this would involve creating a plugin that deals with the RMI port, but I am not capable of creating such a plugin.

Any thoughts?

SteveInLA

I do think that this can only be done by using a server-client plugin.
The clients (the batchprocessor is also a client) need to talk to each other.

On the other hand, just a thought, you create a database with some sort of task and have the clients check that database for their own id…

Can be done with the scheduler or manually.

I had planned to have a scheduled_events table anyway, but it had not occurred to me to run scheduler from within each client to check that table for events to run. I have not used the scheduler yet, but what are the implications of having a scheduled job that runs every minute or so for the entire time a client is connected? Will it slow things down or interfere with other things like printPreviews and such? I suppose I could set a flag to supress the scheduler job if necessary.

Maybe use a less frequent interval. Just test it, honestly can’t tell you what the impact will be but it can’t be much.

Steve

The Scheduler/Cron job will ‘wait’ if another Method is in progress so will not interfere with other tasks - however if the User clicks a button that will also have to wait until the Cron job has completed so you may need to split up the scheduled jobs if they are time consuming.

Graham Greensall
Worxinfo Ltd