struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From G√ľnther Wieser <gwie...@creative-it.com>
Subject RE: How to make HttpSession thread-safe????
Date Sun, 10 Apr 2005 19:49:50 GMT
maybe you could tell us more about what you want to achieve, because it
might be the case that you don't have to care that your session is thread
safe...

kr,
guenther 


-----Original Message-----
From: leonnewsgroup [mailto:leonnewsgroup@hotmail.com] 
Sent: Sunday, April 10, 2005 8:08 AM
To: Struts Users Mailing List
Subject: Re: How to make HttpSession thread-safe????

Hi BAL,

Thanks for reply.
Does it mean
synchronized(session) {
    session.setAttribute(..., ....);
    // do whatever else
}
??

Leon

----- Original Message -----
From: "Brian Lee" <brian_a_lee@hotmail.com>
To: <user@struts.apache.org>
Sent: Saturday, April 09, 2005 4:06 PM
Subject: RE: How to make HttpSession thread-safe????


> You can put an object in session and lock on it using synchronized. But
this
> won't work over a cluster.
>
> BAL
>
> >From: "leonnewsgroup" <leonnewsgroup@hotmail.com>
> >To: "Struts Users Mailing List" <user@struts.apache.org>
> >Subject: How to make HttpSession thread-safe????
> >Date: Sat, 9 Apr 2005 15:26:30 -0400
> >
> >Hi All,
> >
> >Quick question,
> >What is the strategies to make HttpSession thread-safe?
> >Thanks.
> >
> >Leon
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >For additional commands, e-mail: user-help@struts.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message