Originally posted by B Sathish:
One of the chapter 6 mock exam answers in HFEJB says that ejbLoad() and ejbStore() can be called by the container in any order and anytime when the container wants even when there is no business method from the client.
Originally posted by B Sathish:
Can someone give me an example of a scenario when the bean is loaded WITHOUT there being a business method call from the client.
When an entity bean instance is in the ready state, the instance is associated with a specific entity object identity. While the instance is in the ready state, the container can synchronize the state of the instance with the state of the entity in the underlying data source whenever it determines the need to, in the process invoking the ejbLoad() and ejbStore() methods zero or more times. A business method can be invoked on the instance zero or more times. Invocations of the ejbLoad() and ejbStore() methods can be arbitrarily mixed with invocations of business methods. An ejbSelect<METHOD> method can be called by a business method (or ejbLoad() or ejbStore() method) while the instance is in the ready state.
Originally posted by B Sathish:
But I feel exam takers should not be burdened with such container vendor implementation details.