Title: RE: Problem regarding interpretation of SPEC WRT CMP create

Well that all depends upon whether the objects were created in the same transaction or not. If the beans are set to "Require New Transaction" then they won't roll back.

Regards

Roland Kamsika
Amonite Limited

 -----Original Message-----
From:   Santiago Gala [mailto:[EMAIL PROTECTED]]
Sent:   26 May 2000 17:49
To:     [EMAIL PROTECTED]
Subject:        Problem regarding interpretation of SPEC WRT CMP  create

I have a problem with the semantics of ejbCreate with CMP:

Let's assume that, in the ejbCreate method of a CMP entit bean, we
create some auxiliary entities.
Let's assume that, after the ejbCreate method returns, Jonas receives a
SQL Exception due to a problem with the database (for example a
DuplicateIndexException).

Should not Jonas rollback a transaction covering all activity (including
any actions performed inside ejbCreate?

I observe behaviour where the bean is not created, but the auxiliary
objects remain in the system in Jonas 1.6.1

Does the spec say something about that?



----
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".

Reply via email to