Hi,
I noted consulting the archives a lot of questions but few
answers on this topic.
Let's say one view need to know the differents
characteristics (name, profession, phone number) of a
Person (Entity Bean). To get this, we call the method
"findAllPersons()" (select distinct oid from Person) which
returns a collection of EJB object. After that, for each
person, we call "getPersonData()" (select * from Person
where oid = ?) supposing that we implemented the
pass-by-value point of view.
I wanted to know if there's solutions to improve
performance for such business methods ??
In my understanding, when a client calls a business method
through the remote interface, the container follows this
way:
        1. ejbLoad
        2. business method
        3. ejbStore
How can we distinguish read-only methods to modifiers
methods (implementation of flags ??) in order to call
ejbStore ONLY when necessary ?
And more generally, how can we improve the access to the
database ??

Thanks for your answers
        Nico

______________________________________________________
Bo�te aux lettres - Caramail - http://www.caramail.com

Reply via email to