You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by udayanga wickramasinghe <ma...@gmail.com> on 2011/09/22 05:21:29 UTC

Is it safe to change org.apache.axis2.deployment.DeploymentEngine deployerMap to a ConcurrentHashMap ?

Hi Devs,
It seems like there's an concurrency issue with Axis2 DeploymentEngine
deployerMap. It is a HashMap object and hence susceptible to concurrent
modification errors . There are  reported bugs on this [1] and i have
recently created[2] to track this. would it be safe to do $subject? other
option would be to use locks for the remaining few API's which is
manipulating the map and return a clone or a readonly collection for
#getDeplyers .. Would this change be possible? If so what would be the best
option ? thanx in advance...

Regards,
Udayanga Wickramasinghe

[1] https://wso2.org/jira/browse/ESBJAVA-797
[2] https://issues.apache.org/jira/browse/AXIS2-5152