WebSphere Portal Server - scope problem when moving to WPS 6

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > May 2007 > scope problem when moving to WPS 6





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 scope problem when moving to WPS 6

2007-05-24, 7:24 am

I've a portlet application written using IBM API that's been working in WPS4 and 5 (with some modifications). Now when I deploy it on WPS 6, it looks that PortletSession.setAttribute/getAttribute methods act as if in application scope not in portlet scope
anymore.

It seems that each portlet gets/sets the same configuration object from the session. The code is like this {in init() method}:
PortletSession pos = portletrequest.getPortletSession();
Object otqb = pos.getAttribute(SESSION_ATTRIB_QUERY);
if (otqb == null) {
tqb = new TQueryBean(portletrequest, portletresponse);
pos.setAttribute(SESSION_ATTRIB_QUERY, tqb);
}
All portlets are configurations of the same base portlet, so there is just one portlet class. It last ran correctly on WPS 5.0.2 -- each portlet initialized it's own configuration. Now in WPS 6 it looks like each next portlet finds the configuration (TQue
ryBean) initialized by the other portlet.

Any ideas what could go wrong? I cannot specifically indicate scope when using IBM API, right? Could there be some parameter in WPS settings to exclude portlet scope (this happens on my test server)


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com