java - @Schedule annotation and timeout in EJB bean -
If I have a @ched task that runs every 5 seconds and sometimes 5 Takes longer than seconds? EJB container knows how to deal with such a scenario or do I need to take care of myself? Thank you.
P.S. My EJB bean is annotated by @startup and @gigletton, and I run it on Websphere 8.0
I think that's good because you have annotated Bean with @Sigletton
. As long as you do not explicitly mark the methods with @synchronous
, EJB beans are synchronized so if a cron execution (one thread) is in progress then the other cron run (the second thread) First must wait to finish.
Comments
Post a Comment