GUI updates whilst using an AppServer

Posted by savidislps on 04-Jun-2013 11:28

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

All Replies

Posted by Admin on 05-Jun-2013 23:48

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)

Posted by savidislps on 24-Jun-2013 06:28

Thanks for the response to this.

This thread is closed