This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
How to send event notification to all instances of same web application.
daitkarsachin paatil
Greenhorn
Joined: Apr 07, 2010
Posts: 9
posted
0
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.
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.
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
posted
0
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: How to send event notification to all instances of same web application.