File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Portals and Portlets and the fly likes How to send event notification to all instances of same web application. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "How to send event notification to all instances of same web application." Watch "How to send event notification to all instances of same web application." New topic
Author

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

daitkarsachin paatil
Greenhorn

Joined: Apr 07, 2010
Posts: 9
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

Joined: Apr 12, 2011
Posts: 200

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

Joined: Mar 06, 2001
Posts: 13459

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

Joined: Apr 07, 2010
Posts: 9

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to send event notification to all instances of same web application.