java - Is jCaptcha thread safe? -


i'm using jcaptcha in project , needed behavior not directly available. looked source code see if can extend obtain want , found store implementation use (mapcaptchastore) uses hashmap store... no synchronization.

i know jcaptcha not work in clustered environment, not case, how multiple clients @ same time? store implementation synchronized externally or should roll own , make sure synchronized?

tia!

judging reading source mapcaptchastore, class not thread-safe. i'm not 100% willing stand behind answer though, because synchronisation may happening @ higher level (eg accesses single instance of mapcaptchastore may synchronised on object).

you use implementation of captchastore. example, ehcachecaptchastore


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -