Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp/servlet real time notifications

 
Santhosh Samban
Greenhorn
Posts: 9
Java Postgres Database Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to implement Real time notification in my page. Suppose I have page1 and page2. An action of page1, I need to implement the notification on page2. I have noted a tutorial in JSF which is called Primefaces. http://www.primefaces.org/showcase/push/notify.xhtml. Can you guys suggest anything similar in jsp/servlets?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look into the so called COMET API

Bill
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65220
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is nothing in Servlets or JSP for that, you need to look into other technologies. In addition to the long-in-the-tooth Comet, you might look into web sockets, SSE or Meteor.

Or just poll with Ajax if you want to keep it simple.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic