HttpSession and JSR168 portlets
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > HttpSession and JSR168 portlets




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    HttpSession and JSR168 portlets  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-20-06 07: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 w
ay to get a handle on a Portal wide HttpSession (is there such a thing?) in 
my portlets but can't do it





[ Post a follow-up to this message ]



    Re: HttpSession and JSR168 portlets  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-20-06 01:21 PM

Portlet services might do the job.





[ Post a follow-up to this message ]



    Re: HttpSession and JSR168 portlets  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-06 12:53 PM

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 clust
er always keep to one node you might use distributed map in WAS (WAS only-st
uff -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 wo
uld 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 c
ould work if you can pack the different WARs in one EAR and have that EAR de
ployed 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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:49 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register