On Fri, 27 Apr 2001, you wrote:
> I have a problem with the data in my EJB becoming out of sync with the
> database. The cause of this is that the data may be modified by a source
> external to my EJB. When I call the getData() function of my EJB the
> container does NOT call ejbLoad() before servicing the request, and hence
> the answer returned is the 'old' value.
>
> What are the 'rules' governing when the container decides it needs to call
> the ejbLoad() method. It seems to call ejbLoad() when the first business
> method is invoked and then not again, (unless the bean has been
> re-activated).
The specs told me, that ejbLoad is called when the first call to
findByPrimaryKey() is done - and of corse if the bean is reactivated.
We have a similar problem in our application due to some legacy code
and solved it by calling the ejbLoad manually in the methods where we
need synced data.
>
> When we run the application in the Inprise Application Server it seems to
> call ejbLoad() before each business method call - therefore we don't see the
> problem in our development environment.
If you wants to develop vendor-independant, you can't rely on this,
it's not in the spec.
HTH
tom
--
THETA - Consulting
Kommuniktionsanalyse - Anwendungsentwicklung - LINUX-Systeme
Thomas Hagedorn Tel. 07231-472108
Rainstr. 12 Tel. 0172-7642398
75217 Birkenfeld [EMAIL PROTECTED]
Jesus inside - where do you want to go forever ?
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user