I (think) I need some kind of queuing system as part of my web app.
When a user submits details on the form the action is for a servlet which then needs to do a lot of processing (potentially 5-10mins (possibly in the future anyways))
I don't want the user to be sat there waiting for the web app to complete this task as there will also be other users doing the same task too (and the server could get quite busy at times).
So I was wondering if there is something I can use to kind of "pass" this task onto something else which can act as a queuing system and process the tasks in the order they arrived.
This way the task still gets completed and the user isn't sat there waiting for the next "confirmation" page to load.
I have not read up on anything like this yet (mainly because I don't really know what to look for) so I may be asking a daft question. So if anyone has any pointers on information to read up on this subject it would be much appreciated.
You may use any of the commercial or open source queueing systems available and use JMS API to place your data as a message. You may further write batch programs that will fetch messages placed by your application, from the queueing system(s) and do the needful. You need to find out how to install and configure queueing systems and the usage of JMS API.
Not many get the right opportunity !
Joined: Sep 30, 2009
Ok thanks, I will have a good read up on all of that.