Ralph Goers wrote:
Reinhard Poetz wrote:
I'm not sure if it is directly helpful for your problem, but Spring
2.x offers request, session and global-session scoped beans
(http://static.springframework.org/spring/docs/2.0.x/reference/beans.html#beans-factory-scopes-other).
Thanks, but that doesn't help. A portal typically consists of the portal
webapp and several portlet wars. The session variables have to be shared
across theses various webapps. However, the portlet spec mandates that
they each have their own session. Most portal vendors provide
proprietary ways around this. Also, in this environment each portlet
war will have its own Spring container. The beans can't be shared
without getting ClassLoader errors.
These are the types of issues you want to avoid creating.
hmmm, just wondering what the globalSession scope of Spring is good for then?
According to the Spring documentation it solves exactly this problem.
--
Reinhard Pötz Independent Consultant, Trainer & (IT)-Coach
{Software Engineering, Open Source, Web Applications, Apache Cocoon}
web(log): http://www.poetz.cc
--------------------------------------------------------------------