Publish/subscribe message based communication

These communication methods are based on directed communication links that pass information from a source portlet to a target portlet.

The portlet programmer defines which information a portlet can send or receive in order to participate in the communication. At run time data is passed by an event broker component across communication links that are created by administrators or end users. When data is sent across a link, the target portlet is explicitly invoked to process the received information and can perform arbitrary updates as a side-effect. This is called the push model. Previously cached markup is discarded as a result of receiving an event.

Message based communication allows more programmatic and administrative control than shared state, but also creates more overhead. If you need to coordinate many portlets and create a large number of connections, consider using shared state instead.


Parent

Portlet communication
Shared portlet state
Special purpose techniques for data exchange
Portlet events based communication
Cooperative portlets
Interoperability between events and cooperative portlets
Event broker
Portlet wires
Public render parameters
Known issues and restrictions with portlet communication


Communication with persistent wires

The following two communication techniques are based on persistent data links, also called portlet wires. The wires have to be configured in a separate step before the portlets can communicate:
Portlet events


Cooperative portlets

Note that you can create communication links in both directions between JSR 286 portlets and JSR 168 portlets by using the cooperative portlet API. However, that API does not support communication links between IBM and JSR 168 portlets.


Communication with dynamic menus

The following two communication techniques are based on dynamically generated menus that allow portal users to select a target destination for displayed data at run time:
Live text based click-to-action


Server-generated click-to-action menus

 


+

Search Tips   |   Advanced Search