I don't remember the parameter you have to change, but you should search the
message archives because I've seen this answered before. From what I
remember, you need to tell jboss that your data can be externally modified
and it will then behave the way you want it to. I believe the default is
that the data will not be externally modified and that this can be handled
more efficiently. I don't this this is specific to jboss, it's part of the
CMP or BMP spec so you may want to also check those docs out.
Good luck,
Todd Chaffee
- Todd Chaffee
----- Original Message -----
From: "Richard Conway" <[EMAIL PROTECTED]>
To: "JBoss User List" <[EMAIL PROTECTED]>
Sent: Friday, April 27, 2001 11:49 AM
Subject: [JBoss-user] When does the container call ejbLoad()
>
> 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