Santiago Gala wrote:

> 
> Do you mean that the right behaviour would be to rollback/commit the whole
> home.create set of actions, (not just the actions performed inside the
> ejbCreate method) but that Jonas 1.6.1 does not support it correctly?
> In my case, ejbCreate returns correctly. It is later, when the Container tries
> to effectively create the entity in the DataBase, when the exception is
> raised. I would expect that, for CMP, the home.create method call is
> considered as the transactional unit, not just the ejbCreate call performed by
> the container as a consequence. Am I wrong?
Not at all. 
If I have well understood your case, an exception is raised in the CMP
part of the creation (cf createdata in the generated interposition
classe of the bean)
EJBException is raised in createdata. EJBException is a runtimeException
so if the home.create was running in the context of the caller
transaction
the container will  mark the transaction for rollback 
and if the home.create was running in the context of a transaction that
the
container started immediatly before calling create, the transaction
will be rolledback.
In CMP ejbCreate,the code generated for database access and
ejbPostCreate are involved in the same transaction.
This is the behavior in JOnAS 2.0.
I don't remember exactly the behavior of JOnAS1.6.1
 
> I have plans to migrate this system to Jonas 2.0, but it is not done for the
> moment.
I can only encourage you to migrate if it's possible. 
Best regards,
-- 
        Philippe

Philippe Coq  Groupe Bulll/BullSoft/OpenMaster  Phone: (33) 04 76 29 78
49
Bull S.A  - 1 rue de Provence - 38432 Echirolles Cedex France
[EMAIL PROTECTED]  http://www-frec.bull.com
Download our EJBServer at http://www.bullsoft.com/ejb
----
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