I believe that any programmer who has dealt with database queries in a gui application has encountered some or all of the following problems:
- Your GUI freezes because you are invoking the database level inside the Send thread event
- When you have multiple windows / panels / jframes where the user can start the db request, your performance degrades because you do not have control over the threads created by the user.
- The user can lock the application and even the database, because he calls an action many times before the first action is completed.
What I would like to know about: are there any frameworks that meet the requirements of processing an ordered set of long-term actions (including, but not limited to, database calls, i.e. computations) outside the event dispatch stream?
Note: I know SwingWorker; -)
source share