Hi,

 Check out the commit option.  jboss default is A, meaning jboss expects to
be the only one changing the data.  B or C allow for other apps changing it
too.  jboss config is discussed in ch06s08.html, advanced
configuration/container configuration of the manual. ( a spec section ref
would be nice, but I don't have it)

david jencks

On 2001.04.27 11:49:20 -0400 Richard Conway 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).
> 
> 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
> 


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

Reply via email to