Top five use cases for Java messaging
Writing on the stackoverflow.com message board, user duffymo said he has seized upon JMS to process operations asynchronously. "A Web user won't want to wait for more than [5 seconds] for a request to process," duffymo wrote. JMS allows for submitting a request to a queue and immediately sending back a URL that users can access to see if a job has finished.