You can store session data in a simple map, so two different models can share the same object just by using the same key.
Models can store data in the session by using the getWebAppData method on the WebAppAccess object. The data is stored in a simple map, so two different models can share the same object just by using the same key.
The default behavior of IBM® WebSphere® Portlet Factory is to store this data directly in the J2EE session object, and most J2EE platforms recommend keeping this storage to a minimum. However, the actual storage for this data is through a pluggable interface, so you could, for example, actually store the data in a persistent Java™ Bean. Applications that work using one technique automatically work with the other.
Parent topic: Overview: communicating between models