[Asterisk-java-users] Timing issue with ResourceBundleMappingStrategy
Brought to you by:
srt
From: King H. <kin...@ne...> - 2006-03-04 06:14:00
|
Hi, I've found a problem with the ResourceBundleMappingStrategy when after = the server=20 startup and several AGI requests comes in at the same time, then it is = possible that=20 other than the first request, the other may failed with the 'No script = configured for URL'=20 error.=20 This is because the first request will do a 'loadResourceBundle' and set = mappings =3D new HashMap() The other request will see that 'mapping' is not null and will proceed = to do a lookup. If=20 'loadResourceBundle' has not finished reading the mapping the server = will give the=20 'No script configured for URL' error. Setting 'mappings' at the end of 'loadResourceBundle' will also not work = as the=20 other requests will each do a 'loadResourceBundle'. I think one way to = solve this=20 problem is to do 'loadResourceBundle' in the = 'ResourceBundleMappingStrategy' constructor.=20 Thanks. Best Regards, King Ho |