Hi,

I have a problem for ejbStore in BMP:

A stateless session bean looks up the BMP and calls the findbyprimarykey()
through the remote interface. In ejbFindByPrimaryKey(), the setters are
called (so that data fields are set to the one retrieved from database).
However, in session bean, when call the getter methods through the remote
interface, all are null ! And when  the transaction is completed, the
ejbStore invokes which raises errors as nulls even the primary key class. In
my ejbStore, I have:
"update user set status = " + this.status + " where id = " + this.id ;
*** status and id are private data members in the BMP.

Am I do in a proper way ? I mean when I want to update data, I invoke
findbyprimarykey() to find the record first, and  then invoke the setters
method to update to a new value and that's it. Or it should not in this way
?

*** I have used commit-option B.

Thanks,
Camus



-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to