WebSphere Portal Server - HttpSession and JSR168 portlets

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > January 2006 > HttpSession and JSR168 portlets





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 HttpSession and JSR168 portlets

2006-01-20, 2:50 am

Hi,

I am working with JSR168 portlets and have a requirement to store an Object that portlets in different WAR files can access. I've been searching for a way to get a handle on a Portal wide HttpSession (is there such a thing?) in my portlets but can't do it

2006-01-20, 8:21 am

Portlet services might do the job.

2006-01-23, 7:53 am

Hi!
How is this going?

Portlet Services might be one way.

If you don't have the requirement to support clustering or if you in a cluster always keep to one node you might use distributed map in WAS (WAS only-stuff -warning) and store objects in it using the session id as key. At least for IBM portlets the portle
t session is the same as the httpsession id thus this is the key that you would need to store in the map.

Another way could be to use a static class and have a map in it but then you would need to change classloader policy to encure that one instance. This could work if you can pack the different WARs in one EAR and have that EAR deployed with parent first se
t as classloading and the utility class in the EAR so that all WAS uses the same classloader to load that class with the map. Are you following me?

I thought that you could get a handle to the httpsession in JSR168 portlets? Or is that only in the same WAR as you described?

Regards
Karin
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com