Re: T5 : tapestry-hibernate : rollback when exception was thrown

2008-01-20 Thread Foror
Try session.connection().commit(); o> Please tell me how to rollback the current transaction when a exception was o> thrown!!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

T5 : tapestry-hibernate : rollback when exception was thrown

2008-01-20 Thread osamuo
I am using the tapestry-hibernate and 'hibernate.connection.autocommit' in hibernate.cfg.xml is set to false. After throwing a exception, transaction was committed. So I called HibernateSessionManager#abort(), but the transaction was still committed. Please tell me how to rollback the current t

Re: T5: tapestry-hibernate: rollback

2008-01-12 Thread osamuo
Hi, I had mistaken. I had set 'hibernate.transaction.auto_close_session' instead of 'hibernate.connection.autocommit'. But I encountered the same condition again when I set 'hibernate.connection.autocommit' to false. -- org.hibernate.dialect.PostgreSQL

Re: T5: tapestry-hibernate: rollback

2008-01-12 Thread Sven Homburg
i miss the autocommit property in your config 2008/1/12, osamuo <[EMAIL PROTECTED]>: > > > Hi, > > Yes, I have. > I created 'hibernate.cfg.xml' like the following. > > -- > > > > name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect > > > nam

Re: T5: tapestry-hibernate: rollback

2008-01-12 Thread osamuo
Hi, Yes, I have. I created 'hibernate.cfg.xml' like the following. -- org.hibernate.dialect.PostgreSQLDialect jdbc:postgresql://192.168.0.103/Test test testtest org.postgresql.Driver net.sf.ehcache.hibernate.EhCacheProvider false true true true tru

Re: T5: tapestry-hibernate: rollback

2008-01-12 Thread Sven Homburg
have you set autocommit to off in hibernate config like this: false osamuo wrote: > > 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? > >

Re: T5: tapestry-hibernate: rollback

2008-01-11 Thread osamuo
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 Hibern

Re: T5: tapestry-hibernate: rollback

2008-01-11 Thread Davor Hrg
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. > > > > I

Re: T5: tapestry-hibernate: rollback

2008-01-11 Thread Massimo Lusetti
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 --

T5: tapestry-hibernate: rollback

2008-01-11 Thread osamuo
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? Osamuo -- View this message in context: http://www.nabble.com/T5%3A-tapestry-hibernate%3A-rollback-tp14752000p14752000.html Sent from