I built my project using Struts, Spring, and Hibernate. I am using Tomcat for the server. Now I want to implement push notifications in my web application, to perform tasks
Well the easiest way is use ajax calls with long polling(jQuery comes to mind). Comet is fine too.
Have you tried the framework Atmosphere? It supports websocket and also fallback to mentioned longpolling.
It can be used with jquery on the client side. Tutorial is here.
Use Spring STOMP WebSockets.. its very easy and simple https://spring.io/guides/gs/messaging-stomp-websocket/