Triggering 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 created by portal administrators or portal 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. To coordinate many portlets and create many connections, consider using shared state instead.
- Communication with persistent wires
Use portlet wires for communication between portlets. Portlet wires are persistent data links.
- Communication with dynamic menus
Use dynamic menus for communication between portlets.
- Runtime behavior
The portal event broker subsystem provides support for inter-portlet communication with active notifications using portlet events or the cooperative programming model.