I have an application which will perform batch actions on a server using an app server connection from a GUI client - this will read tens of thousands of records and make updates.
Can anyone recommend a the best way to update the user of the rate of completion of the task (e.g. a progress bar) - what's the best way to implement this using an app server?
Thanks
Leon
During an synchronous appserver call, the client is frozen and cannot receive any message or update from the appserver.
Generally you have two options:
1) split the batch action into multiple "chunks" controlled by the client. Basically the client controls the flow then and can so update the UI with a status bar.
2) use an asynchronous appserver call and a suitable messaging between client and appserver. Suitable may be DB based (the appserver writes status update to a DB table, the client polls that DB table using another AppServer agent using a timer event), or based on a messaging solution like Sonic MQ or Apache Active MQ (https://bitbucket.org/jmls/stomp)
Thanks for the response to this.