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:[EMAIL PROTECTED] 
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" <[EMAIL PROTECTED]>
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" <[EMAIL PROTECTED]>
> >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: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to