| dctomlinson 2004-10-12, 9:00 am |
| Having developed J2EE Struts apps in WebSPhere for a couple of years, when I move to portal, I have run into an issue:
How to access shared common data?
We are developing a portal for a financial services firm. In addition to LDAP based security, there is user information in the database that we want to be able to aggregate with some of the LDAP group data, and make available to the various portlets. This includes account data that restricts the user's view of data, user profile information, role information, etc.
Typically, we would extend the Struts controller to gather all relevant data and put into a session object., which would be available to all action classes.
However, with Portal 5, the HTTP Session does not seen to be available.
The Portlet Session is per portlet, if we were to create a singleton with a static hashmap, it wouldn't be available between portlets, because each Portlet is in a separate classloader (I think???)
the portal user profile seems to be only data that is defined in wmm.xml, etc. etc.
This all makes for a very fragmented and inefficient approach to session data.
Has anyone come up with a mechanism for sharing session level data? |