I have a small confusion surrounding the following question from the JavaBeat SCBCD 5.0 Mock Exam:
7) Imagine that the Application you develop periodically sends some events to some other parts of the Application at some defined intervals. Which of the following enterprise bean(s) can be used in this scenario?
From memory I felt that 1, 3, and 4 were correct, however, the stated answer is that only 3 and 4 are correct. Firstly, I am right is interpretting this question as looking for the understanding of where a Timer can be created? If so, I think that answer is wrong. Trawling my memory banks I clearly remembered a statement in O'Reilly EJB 3.0 book that stated Entity Beans can create timers. After a quick scan I found the following (p48):
Timers can be set on entity, stateless session, and message beans.
To further inestigate this I looked at the EJB 3.0 spec which clearly states that a EJB 3.0 Entity can not create a Timer whereas a EJB 2.x Entity Bean can.
Am I right in thinking that the correct use of the term Entity Bean is to refer to a EJB 2.x Entity Bean (managed by the container and thus able to create a Timer) and that the term Entity refers to a EJB 3.0 Entity (not managed by the container and thus unable to create a Timer)? If so then am I right is saying that answer to the JavaBeat question is wrong? (I'm fairly new to EJB 3.0 and the exam and its objectives so be kind!)