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).

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.

More importantly how do I best resolve the situation in my EJB.
Is there a container configuration parameter I can use, or do I have to find
a way to code around this - any suggestions ?

I am concerned that this situation could arise in other parts of the system,
and hence an understanding of conatiner's behaviour re. ejbLoad() is
important.

Thanks,
Richard.

---
Richard Conway ([EMAIL PROTECTED])
---
This message is confidential; its contents do not constitute a commitment by
The VEGA Group PLC except where provided for in a written agreement between
you and The VEGA Group PLC. Any unauthorised disclosure, use or
dissemination, either whole or partial, is prohibited. If you are not the
intended recipient of the message, please notify the sender immediately. 



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to