Hi,
frist of all it should read the data with an ejbLoad, but why aren't you
handling R and U in one bean? Well it'll get a bit thick, but handling data
in one table is usually done with one bean to avoid your issue.
Burkhard
----- Original Message -----
From: "Syed" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 19, 2001 11:58 AM
Subject: [JBoss-user] ejbLoad not called even when commit-option is C


Wehave two entity beans, we use one entity bean for updation which updates a
few tables and call it U
The other entity bean just loads data only, let's call it R.
When we use the bean U to update the data, the data gets updated.
Then we call the bean R to read the data. ejbLoad in R is called the the
latest data is loaded.
Then we use bean U to change the data again and the data is modified.
Now we use findByPrimaryKey in R to find and read the data but this time it
returns the old data not the data just updated.
Then we put some logging and found that ejbLoad is not called during second
invocation.
I think that if we give commit-option as C means that ejbLoad is supposed to
be called before
every business method invocation which includes ejbFindByPrimarykey also.

Is there any other setting which can make the entity beans' ejbLoad called
whenever ejbFindByPrimaryKey is called.


ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸
            Thanks & Best Regards,
         Mustaffa Syed Meerkasim.
 ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸

_______________________________________________
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