wood burning stoves*
The moose likes Portals and Portlets and the fly likes JSR 286 event model Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "JSR 286 event model" Watch "JSR 286 event model" New topic
Author

JSR 286 event model

Dorothy Taylor
Ranch Hand

Joined: Nov 26, 2007
Posts: 104
Hi

I am trying to understand the event architecture in JSR286. Could you please provide some insight into how the pub/sub model works in case of JSR 286? My understanding is that public render parameters and eventing are the exactly the same architecture wise since they both follow a pub-sub model. Only difference being the complexity of payload and the callback mechanism that exists in the events. Having said that there must be an EventListener implemented by the portal vendor (not container) that will deliver or service the published events to their subscribers using the wiring admin tool. The EventListener will parse the portlet.xml file to get the information.

Please validate if my understanding is correct?
Jonas X. Yuan
author
Ranch Hand

Joined: May 18, 2008
Posts: 108
Hi Dorothy,

The chapter 2 of the book http://www.packtpub.com/liferay-portal-5-2-systems-development/book will give you details about JSR-286 and IPC (Inter-portlet communication).

The following info is abstracted from the book:

The JSR-286 provides capabilities for coordination between different portlets, that is, inter-portlet communication, with following mechanisms:
• sharing data between artifacts in same web application via session in application scope;
• using public render parameters in order to share render state between portlets;
• using portlet events that a portlet can receive and send

In this section we’re going to address the session, the public render parameters and the portlet events in detail.

-- Jonas Yuan


Books: Liferay Portal 6.1 Systems Development
Dorothy Taylor
Ranch Hand

Joined: Nov 26, 2007
Posts: 104
Hi

Thanks for the reply. But the book is a paid one. I was just navigating through the TOC. BUt it seems that the books there only talk about how to achieve wiring in Lifery, but I really want to know the architecture of the pub-sub event model. Can you help me with getting the architectural details of ow the co-operation is getting achieved.

Regards
Jonas X. Yuan
author
Ranch Hand

Joined: May 18, 2008
Posts: 108
Hi Dorothy,

The chapter 2 talks about generic JSR-286 - using Liferay portal as an example.

Hope that it helps

- Jonas Yuan

Books:
Liferay Portal 5.2 Systems Development
Liferay Portal 5.0 Enterprise Intranets
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSR 286 event model