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

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -