|
Home > Archive > WebSphere Portal Server > January 2006 > WPS 5.0 PortletSessionListener login not being called
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
WPS 5.0 PortletSessionListener login not being called
|
|
| Brian J. Sayatovic 2006-01-29, 9:47 pm |
| I have a portlet being deployed in Websphere Portal Server 5.0 and this
portlet implements the PortletSessionListener.login(...) method. However,
this method is not being invoked! I am in fact logging into the portal and
going to the page with my portlet, and i expect to see me log showing my
debug statements inside the login method, but they're not there -- leading
me to believe it's not being called.
Any ideas why thsi might be?
Regards,
Brian.
| |
| Brian J. Sayatovic 2006-01-31, 8:01 am |
| For what its worth, I've found that I cannot rely on th
PortletSessionListener.login method being called by WPS. I had hoped to use
it to have a clear demarcation of the lifecycle of a user with respect to a
portlet so I could initialize some things ahead of time and clean them up
when done.
In lieu of that, I'm using a lazy-loading pattern to handle the
initialization and plan to listen as an HttpSessionBindingListener to know
when to clean up.
In reality, I want this init/cleanup code to also be available to anonymous
users potentially, so that rules out relying on the login method anyways.
Regards,
Brian.
"Brian J. Sayatovic" <bsayatovic@amig.com> wrote in message
news:drbk6t$5n62$1@news.boulder.ibm.com...
> I have a portlet being deployed in Websphere Portal Server 5.0 and this
> portlet implements the PortletSessionListener.login(...) method. However,
> this method is not being invoked! I am in fact logging into the portal
and
> going to the page with my portlet, and i expect to see me log showing my
> debug statements inside the login method, but they're not there -- leading
> me to believe it's not being called.
>
> Any ideas why thsi might be?
>
> Regards,
> Brian.
>
>
|
|
|
|
|