Hi all:
In section 10.5.3 of the spec, it says
public void ejbLoad();
When the container needs to synchronize the state of an enterprise bean instance with the
entity object�s state in the database, the container calls the ejbLoad() method. Depending
on its caching strategy, the container may first read the entity object�s state from the database,
before invoking the ejbLoad() method, or it may use a lazy loading strategy in making this
state visible to the instance.
The exact times that the container invokes ejbLoad depend on the configuration of the component
and the container, and are not defined by the EJB architecture. Typically, the container
will call ejbLoad before the first business method within a transaction.
Two questions:
1) Is ejbLoad() called before or after the container synchronizes the state of the enterprise bean?
2) What is meant by "lazy loading"?
Thanks,