Cant find session variable

"Hernandez, Carlos A." <[email protected]>
Newsgroups gmane.comp.jakarta.pluto.user
Message-ID <F24687657C7F3B468838D6AA75368A0F06E0EDE5@icwpex101.us.intercall.com>
Hello Guys,

 

I'm using Pluto 1.1 since I'm developing some portlets. But I'm having problems using the session for the application scope.

 

I got this portlet that stores an object into session. That object must be seen by another portlet. This is what I do

 

getPortletSession ().setAttribute ( CRED_SESSION, object, PortletSession.APPLICATION_SCOPE );

 

An then in a second portlet (a completely different one, but the same portal server) I try this:

 

getPortletSession ().getAttribute (CRED_SESSION, PortletSession.APPLICATION_SCOPE )

 

I got a null and when I print the list returned by

 

final Enumeration names = session.getAttributeNames ( PortletSession.APPLICATION_SCOPE );

 

I can´t find no trace of my object.

 

What can I do?

 

And I got a doubt about the wires in Pluto, I'm "persisting" my object in static arrays for me to speed up my development

But it seems also that my arrays are not there. Do you have different classloaders for every portlet?

 

 

 

Thank you for your help I really appreciate it.

Carlos Alberto
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.