Re: @CommitAfter rollback propagation

2009-05-31 Thread Thiago H. de Paula Figueiredo
Em Sat, 30 May 2009 18:17:46 -0300, Juan E. Maya escreveu: I was thinking about something similar to what spring has to offer. Me too. :) But using EJB3 annotations (are they part of a standard), not the Spring ones, of course. I guess the step after this one would be to build some secu

Re: @CommitAfter rollback propagation

2009-05-30 Thread Juan E. Maya
I was thinking about something similar to what spring has to offer. So yes, i think it should be in Tapestry IoC. Personally, one of the only things i miss from Spring is its transactional support. On Sat, May 30, 2009 at 10:07 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em

Re: @CommitAfter rollback propagation

2009-05-30 Thread Thiago H. de Paula Figueiredo
Em Sat, 30 May 2009 11:02:52 -0300, Juan E. Maya escreveu: This sounds awesome Thiago. I could give u a hand if you want. Nice to know I'm not the only one wanting transaction support in Tapestry. :) However, i still think that such library should be part of the core framework. Tapes

Re: @CommitAfter rollback propagation

2009-05-30 Thread Juan E. Maya
This sounds awesome Thiago. I could give u a hand if you want. However, i still think that such library should be part of the core framework. On Fri, May 29, 2009 at 2:27 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, May 29, 2009 at 6:12 AM, Juan E. Maya wrote: > > hmm

Re: @CommitAfter rollback propagation

2009-05-29 Thread Thiago H. de Paula Figueiredo
On Fri, May 29, 2009 at 6:12 AM, Juan E. Maya wrote: > hmm so @CommitAfter works as REQUIRES_NEW. A new transaction is created for > each method. > It would be great if the core support for hibernate would add more > transactional support. Maybe for 5.2? :) Does anybody know if there are > plans f

Re: @CommitAfter rollback propagation

2009-05-29 Thread Juan E. Maya
hmm so @CommitAfter works as REQUIRES_NEW. A new transaction is created for each method. It would be great if the core support for hibernate would add more transactional support. Maybe for 5.2? :) Does anybody know if there are plans for something like this? On Thu, May 28, 2009 at 8:04 PM, Rober

Re: @CommitAfter rollback propagation

2009-05-28 Thread Robert Zeigler
Not quite. The commit happens immediately after function exit, and it commit the current transaction, subsequent actions will then be performed in a new transaction, as detailed by Igor. So, the flow for your scenario is (assuming you haven't committed the current transaction (t1) before cal

Re: @CommitAfter rollback propagation

2009-05-26 Thread sodium
Thanks Igor, I think i understand it now. Basically every function which is annotated with @CommitAfter will be commited at the end of the request when session is detached. I guess the only way is to group together whatever i wanted to achieve into a single function and have it @CommitAfter. Ig

Re: @CommitAfter rollback propagation

2009-05-25 Thread Igor Drobiazko
@CommitAfter commits the transaction of the request. The transaction is created when the session is attached to the request. When functionB() is called the transaction will be committed and a new one will be created. So functionA() will commit the later transaction. On Tue, May 26, 2009 at 5:46 AM

@CommitAfter rollback propagation

2009-05-25 Thread sodium
A quick question about tapestry-hibernate rollback propagation. As far as i know, any function annotated with @CommitAfter will create a new transaction similar to EJB required_new. But how would the nested functions behave? For eg. @CommitAfter public void functionA() { functionB(); } @CommitA