Hi,
I have just a question about the behavior with JONAS Entity Bean BMP.
Is it normal, that JONAS call the ejbStore method, after a failed
ejbCreate.
If the creation failed and raised a CreationException or a
DuplicateKeyException,
I dont see the need for a call on the ejbStore method which is going to
try to update
a row which does not exist. And since the Transaction has been set in a
roll back mode
everything will be cancelled anyway...
I noticed this behavior on JONAS 2.2.2 and 2.1.1.
I also checked that weblogic 5.1 does not call the ejbStore method in
such a situation.
I encountered the problem, because in my ejbStore method, I look for the
primaryKey of my bean
in the context. In that case, jonas complained that I am not in a valide
state and raised an exception.
So it raised a second question, is it safe to request the primary key of
a bean in the ejbStore method?
Nicolas GANDRIAU
--
----------------------------------------------
Nicolas GANDRIAU
LIBELIS CANADA
300 St Sacrement
Bureau 420
H2Y 1X4, Montreal
tel : (1) 514 284 5432 (214)
fax : (1) 514 284 2342
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".