i have bean scope "prototype" (not singleton) @scheduled annotated method.
@component @scope("prototype") public class testmanager { @scheduled(fixeddelay = 5000) public void updatestatuses(){ log.info("scheduled update"); } }
i call instance of bean when need , expect each instance launch scheduled timer. scheduler annotation doesn't seem work unless remove scope , make bean singleton again.
is there workaround? why isn't possible?