I am working on a rich client side Java EE application in which most of the processing takes place on the client side.
A typical scenario for this would be:
- A user sends a request to the server to fetch results from a long running process.
- The server performs a typical POST/REDIRECT async. and pushes the results to the clients as and when they are ready.
- The client renders the response to the web page.
Is there a way we can use the server to push the messages directly to the clients to be notified (like the way gmail notification works)?
I know we can use JMS to publish the messages, but that would still require the client to make AJAX calls to the server to get the prepared message. Is there any other way I can achieve this?