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
Post a Comment