• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to send event notification to all instances of same web application.

 
daitkarsachin paatil
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have a web application which contains user specific information with admin,guest and normal user as a credentials.
I want to show the information posted by admin to all the logged in users . I can achieve this through ServletContext attribute.
But the problem is how can i notify to portlet to reload the page automatically whenever ADMIN post something.

(I am using portlet version 1.0)


thanks & Regards
Sachin Daitkar
 
Guy deLyonesse
Ranch Hand
Posts: 200
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Inter-Portlet Communication isn't supported in the Portlet 1.0 specification, so your best bet is to upgrade your portlets to Portlet 2.0 (JSR-268) and that will allow you to add the functionality you need.

The upgrade shouldn't be too complex, since the code should be backward-compatible.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ditto that IPC was introduced in the Portlet 2.0 spec, but if you're talking about passing messages to all users currently logged in from another account, or to all users period then this needs to be something supported by custom back end code and doesn't sound like something that is specifically portlet related (except that a portlet would be a great way to implement it)
 
daitkarsachin paatil
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thank you david,Guy deLyonesse for your valuable reply , my problem is backend code doen not maintains list of all logged in users. If i set the Servlet/PortletContext parameter then is it possible to trigger all other portlets which are open(i.e the user having their that particular screen open) to update the screen ?

Thanks & Regrads
Sachin
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic