You're definately reading the spec wrong. Look at the diagrams in sections 9.5.4
and 9.5.5 in the EJB 1.1 spec. Pay attention to the commit options.

--Victor


Thomas Hagedorn wrote:

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


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

Reply via email to