Axis2 contexts use unsyncronized HashMap instead of Hashtables

2007-06-11 Thread Srinath Perera
Did we had a reason to use HashMaps instead of Hashtables?, which I belive is the correct approach. Please Comment https://issues.apache.org/jira/browse/AXIS2-2794 Thanks Srinath -- Srinath Perera: Indiana University, Bloomington http://www.cs.indiana.edu/~hpere

Re: Axis2 contexts use unsyncronized HashMap instead of Hashtables

2007-06-11 Thread Deepal Jayasinghe
+1, then we do not need to add sync block in our code , since hashtable does that for us. Thanks Deepal > Did we had a reason to use HashMaps instead of Hashtables?, which I > belive is the correct approach. Please Comment > > https://issues.apache.org/jira/browse/AXIS2-2794 > > Thanks > Srinath >

Re: Axis2 contexts use unsyncronized HashMap instead of Hashtables

2007-06-11 Thread Ajith Ranabahu
IIRC the flip side of the same argument was brought as a reason. Hashtables are slower than hashmaps due to the synching. In how many places do we have to synch if we just use the map ? if there are many I suggest we use the hashtable. However if there are only one or two place where we have to s

Re: Axis2 contexts use unsyncronized HashMap instead of Hashtables

2007-06-11 Thread Srinath Perera
Yes .. right now problem is it is HashMap, but there are no synchornization as well. Please correct me if I am missing something. Thanks Srinath On 6/11/07, Ajith Ranabahu <[EMAIL PROTECTED]> wrote: IIRC the flip side of the same argument was brought as a reason. Hashtables are slower than has

Re: Axis2 contexts use unsyncronized HashMap instead of Hashtables

2007-06-12 Thread Eran Chinthaka
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ajith Ranabahu wrote: > IIRC the flip side of the same argument was brought as a reason. > Hashtables are slower than hashmaps due to the synching. > In how many places do we have to synch if we just use the map ? if > there are many I suggest we use

Re: Axis2 contexts use unsyncronized HashMap instead of Hashtables

2007-06-12 Thread Chathura Herath
On 6/12/07, Eran Chinthaka <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ajith Ranabahu wrote: > IIRC the flip side of the same argument was brought as a reason. > Hashtables are slower than hashmaps due to the synching. > In how many places do we have to synch if we

Re: Axis2 contexts use unsyncronized HashMap instead of Hashtables

2007-06-12 Thread Sanjiva Weerawarana
We talked about this at the beginning .. and concluded that this was the right solution because synchronizing *EVERY* access was way overkill and would add a HUGE performance overhead. PLEASE don't change this unless (1) we have a problem that we're trying to solve and (2) we have some idea of

Re: Axis2 contexts use unsyncronized HashMap instead of Hashtables

2007-06-12 Thread Srinath Perera
I agree if we can not see a problem we should let it be! Thanks Srinath On 6/12/07, Sanjiva Weerawarana <[EMAIL PROTECTED]> wrote: We talked about this at the beginning .. and concluded that this was the right solution because synchronizing *EVERY* access was way overkill and would add a HUGE pe

Re: Axis2 contexts use unsyncronized HashMap instead of Hashtables

2007-06-13 Thread Afkham Azeez
I've run some concurrent tests with clustering enabled where objects are placed/read/removed from the context Maps. In this case, the services place objects in the Map in addition to the clustering mechanism updating the Maps. So far, I didn't face any concurrency issues. Also, synchronizing all t

Re: Axis2 contexts use unsyncronized HashMap instead of Hashtables

2007-06-13 Thread Jarek Gawor
IMHO, if you have some HashMap and it is accessed concurrently, it should be synchronized (or use ConcurrentHashMap instead). Concurrent access on unsynchronized HashMap caused the following bug: http://blogs.opensymphony.com/plightbo/2005/07/hashmapget_can_cause_an_infini.html. This was a while a

[jira] Created: (AXIS2-2794) Axis2 contexts use unsyncronized HashMap instead of Hashtables

2007-06-11 Thread Srinath Perera (JIRA)
Axis2 contexts use unsyncronized HashMap instead of Hashtables -- Key: AXIS2-2794 URL: https://issues.apache.org/jira/browse/AXIS2-2794 Project: Axis 2.0 (Axis2) Issue Type: Bug

[jira] Assigned: (AXIS2-2794) Axis2 contexts use unsyncronized HashMap instead of Hashtables

2007-06-11 Thread Deepal Jayasinghe (JIRA)
[ https://issues.apache.org/jira/browse/AXIS2-2794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Deepal Jayasinghe reassigned AXIS2-2794: Assignee: Srianth Perera > Axis2 contexts use unsyncronized HashMap instead

[jira] Resolved: (AXIS2-2794) Axis2 contexts use unsyncronized HashMap instead of Hashtables

2008-07-04 Thread Deepal Jayasinghe (JIRA)
use unsyncronized HashMap instead of Hashtables > -- > > Key: AXIS2-2794 > URL: https://issues.apache.org/jira/browse/AXIS2-2794 > Project: Axis 2.0 (Axis2) >