-
1. Re: Portal Session or Portlet Session or Whatever Session
keletappi Mar 10, 2006 9:45 AM (in response to bulloncito)JSR168 states that portletsession is portlet or applciation scope. Application in here is one war file. This is how all portals behave and must behave. If jboss would make it possible to share sessions in 'portal scope' it would break JSR168 spesification.
I see this good thing because sharing portlet session openly to other applications in same portal is Security issue. Even if you mean only to share you info with some spesific application, it is exposed fully to others too. Sessions can contain all kinds of sensitive data that should not be visible to other applicions. If you need to share information among several web applications securely it is very easy to set up database for that.
Until there is common and secure way to implement interportlet communication, you should stick with this... share information in portletsession in same application and use database if you need to distribute info to other applications. All kinds of 'proprietary' interportlet commucation methods will be outdated once they some standards out.
CrossContextSession has more to do with clustering. It is required to make replicating sessions of portlet applications to other cluster node. Correct if i am wrong here ;) -
2. Re: Portal Session or Portlet Session or Whatever Session
bulloncito Mar 10, 2006 12:22 PM (in response to bulloncito)It certainly is against specification, but there must be a way, it's stated that it will be available until the next specification, if in the mean time vendor-specific techniques are made available I'll be happy with it.
I believe using a database for such kind of communication is way worse than using vendor-specific techniques.
Of course it is a security issue to share info between portlets, or between anything, but what are apps for without info ? they will eventually become useless, unless we manage some method to share info between them, and try to make it safely.