Hi,
I used the following code in order to rollback the current transaction.
But its transaction was committed after the calling
HibernateSessionManager.abort().
What's wrong?
-------------------------------
public class RegisterUser{
...
@Inject
private Session session;
@Inject
private HibernateSessionManager sessionManager;
public Object onSubmit(){
...
TmpUser tmpUser = new TmpUser();
...
session.save( tmpUser );
sessionManager.abort(); // force rollback
return null;
}
}
-----------------------------
Thanks,
Osamuo
Davor Hrg wrote:
>
> HibernateSessionManager
>
>
> On Jan 11, 2008 11:51 AM, Massimo Lusetti <[EMAIL PROTECTED]> wrote:
>> On Jan 11, 2008 10:00 AM, osamuo <[EMAIL PROTECTED]> wrote:
>>
>> >
>> > Hi,
>> >
>> > I have noticed that the tapestry-hibernate commits the current
>> transaction
>> > even after an exception occurs.
>> >
>> > Is there any way to do rollback its transaction?
>>
>> Use the manager ?
>>
>>
>> --
>> Massimo
>> http://meridio.blogspot.com
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/T5%3A-tapestry-hibernate%3A-rollback-tp14752000p14770190.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]