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 @lock
annotation.)
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
Post a Comment