Re: Cant find session variable

"Yidong Fang" <[email protected]>
Newsgroups gmane.comp.jakarta.pluto.user
Message-ID <[email protected]>
According to the servlet spec,sessions don't cross different webapps.

On 2/9/07, Hernandez, Carlos A. <[email protected]> wrote:
>
>  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
>
>
>



-- 
JSON: Action in AJAX!

JSON - http://www.json.org
JSON.simple - http://www.json.org/java/simple.txt
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.