java ee - Spring equivalent to EJB Singleton Session Bean's concurrency guarantees -


i'm in process of converting java ee 6 application spring + non-ee container (for example jetty) , i'm looking alternative java ee's singleton session bean (usually implemented using @singleton annotation).

the singleton aspect of handled spring. @singleton annotation implies concurrency guarantees: default, methods of singleton session bean strictly serialized write-lock. (the behavior can changed using @lockannotation.)

is there (ideally drop-in) equivalent in spring? @lock customization feature not necessary, i'm looking better alternative manually synchronizing every method of every singleton session bean.

there seems no equivalent in spring. ended using manual synchronization necessary.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -