Thomas Guiu wrote:
> 

> 
> Hi,
> 
> I found a problem: Each time a bean method throws a business exception, I'm
> unable to commit or rollback the transaction initiated by the client ( but
> it 's rolled back later by the jonas TM's timeout). I mean that the rollback
> method is called on the UserTransaction object but the rollback isn't
> propagated to the jonas server.

Hi Thomas,
First of all excuse me for this late response!
Can you be more specific in the description of your problem?
What sort of exception is throwned by the bean method (Application
Exception
or System Exception)?
I understand that your method runs in the context of the caller's
transaction
this case may happen wit Required, Mandatory and Supports transactional
attribute.
If the method throws an Application exception the container must rethrow
the exception
the client must receive the Application exception and it can eventually
commit
the transaction (the commit would fail if the instance called
setRollbackOnly)
here we have a test that verify that behavior and the test PASS
If the method throws all other exceptions and errors the container must
mark the transaction
for rollback and throw TransactrionRolledBack Exception to the client
We have a test that verify that behavior and it is OK again

so I am a little confused about the problem you have, it will be fine
if you can send a little example that reproduce the problem
Regards,
-- 
        Philippe

Philippe Coq  Evidian   Phone: (33) 04 76 29 78 49
Bull S.A  - 1 rue de Provence - 38432 Echirolles Cedex France
Download our EJBServer at http://www.objectweb.org
----
This list is cross-posted to two mail lists.  To unsubscribe,
follow the instructions below for the list you subscribed to.
For objectweb.org: send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe ejb-container-group".
For enhydra.org: send email to [EMAIL PROTECTED] and include
in the body of the message "unsubscribe ejb-container-group".

Reply via email to