Concurrency and input-modules

View: New views
1 Messages — Rating Filter:   Alert me  

Concurrency and input-modules

by Thorsten Scherler-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

http://marc.info/?t=120180448900001&r=1&w=2 

The problem that I encountered is that the locationmap is throwing an
error as soon as there are concurrent user. The locationmap is a
input-module that we have over in forrest.

The problem seems to lie in the fact the getAttribute method is not
synchronized
http://svn.apache.org/viewvc/forrest/trunk/main/java/org/apache/forrest/locationmap/LocationMapModule.java?r1=653732&r2=672756&diff_format=h
above change will fix the problems with concurrency but this raises the
question whether there is a better way to do it and whether ALL
input-modules are not thread saved.

TIA for any thoughts.


salu2
--
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java                      consulting, training and solutions

LightInTheBox - Buy quality products at wholesale price