Hi,

On Fri, 29 Oct 1999, Rickard [iso-8859-1] �berg wrote:


> To know exactly when this happens is less than trivial. Lots of "if
> this" scenarios to consider. But generally ejbLoad will be called for
> example upon start of each transaction.


I should have some way of controlling the number of database calls
that the bean will make. Else I'll end up with a lot of unnecessary
database calls resulting in increased n/w traffic.

>
> > But it is also called by the container when I do a
> > findByPrimaryKey. I'm not very clear as to when all ejbLoad() is called.
>
> WLS should not call ejbLoad upon findByPrimaryKey, BUT both ejbLoad and
> ejbFindByPrimaryKey use a helper method called refresh(). It might be
> that method that is called. Are you 100% sure that it is ejbLoad and not
> refresh() that is called?

Yes, I am aware of the refresh() method. I am 100% sure that the ejbLoad()
is first called ( which in turn calls refresh() ) when
ejbFindByPrimaryKey() is called. So, if ejbFindByPrimaryKey is going to
call ejbLoad() ( and in turn refresh() ) then why should I call refresh()
in the ejbFindByPrimaryKey() method also?

Hope u'll  help me further on this issue.

Thanks in advance.

Regards,
Sowmya Seetharam

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to