--- Leon Rosenberg <[EMAIL PROTECTED]> wrote:

>  
> 
> > -----Ursprüngliche Nachricht-----
> > Von: Wade Chandler
> [mailto:[EMAIL PROTECTED] 
> > Gesendet: Mittwoch, 7. September 2005 21:11
> > An: Tomcat Users List
> > Betreff: Re: Tomcat/JVM hangs in
> session.getAttribute / HashMap.get()
> > 
> > 
> > Should be enough to explain the issue and why
> synchronization 
> > should be used.  I haven't looked at the Tomcat
> code, but why 
> > would a Session not use synchronized maps?  In my
> opinion 
> > it's not a bug in HashMap as it's up front about
> it not being 
> > synchronized.  To fix the original posters current
> situation 
> > they should be able to synchronize on an object
> when 
> > accessing the session...you'll just have to track
> down all of 
> > your calls which are setting and getting
> attributes and 
> > synchronize the code.
> > 
> 
> Unfortunately no. Not only you have to rewrite all
> your calls to the
> session, you also have to rewrite all 3rd-party
> taglibs like struts,
> tapestry, pager, jstl or whatever you are using.
> Each getAttribute must
> become synchronized.
> It is simply not possible to fix it, without
> patching tomcat.
> 
> Regards
> Leon
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
Agreed after thinking about it more....I read your
comment on the bug.  I added my own comment as well. 
It definitely needs fixed.  Especially since other
Jakarta projects and many others are broken by the
issue.  I'm digging in my spec right now.

Wade

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

Reply via email to