We use Tomcat 5.5.20.

I actually have no synchronization in place whatsoever. I will change to
hashtable and see if it solves the problem.

Thank you.

2007/3/7, Caldarale, Charles R <[EMAIL PROTECTED]>:

> From: Glen Vermeylen [mailto:[EMAIL PROTECTED]
> Subject: Retrieve list of all sessions
>
> I've created a management screen which lists all currently
> logged in users. This list is kept as a hashmap and is kept
> "in sync" with reality in the following way:

A HashMap is unsynchronized; does your logic provide the necessary
synchronization for insertions, deletions, *and* retrievals?  If not,
switching to a HashTable might resolve your problem.

Or then again, it might just be a bug, but you didn't tell us the
version of Tomcat you're using, so searching bugzilla would be rather
tedious.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to