I am trying to create a simple example of server Push using Java.
As in the server push client will send request only once to the server. The server keeps the HTTP request alive for that client and keeps on sending the updated data to the client. Please let me know how to proceed or can give me some initial idea for this.
Also let me know if we need to use Servlet 3.0 or JMS for this...
Is it possible using Servlet3.0 and HTML5?
You can use the new websocket specification which is made to maintain a full-duplex channel for client-server communication based on sockets so both instances can still send data at any time (Here come your server push based on some events or whatever logic).
Here is a nice tutorial you can inspire from.
BR.