Java Mailing List Archive

http://www.gg3721.com/

Home » the NHibernate development list »

[NHibernate-development] Transaction.Synchronization

Kailuo Wang

2008-04-21

Replies: Find Java Web Hosting

Author LoginPost Reply
Hibernate uses javax.transaction.Synchronization to register actions before and after transaction commits
Can we add a ISynchronization interfaces into the NHibernate.Transaction namespace with two methods:
void BeforeCompletion()
void AfterCompletion()
And port the following method to ITransaction
void RegisterSynchronization(ISynchronization synchronization)
It's easy to implement in the ADOTransaction. We kind of need it in NHibernate.Search.

What do you think? I can submit a patch if you guys agree on this.

Kailuo
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Nhibernate-development mailing list
Nhibernate-development@(protected)
https://lists.sourceforge.net/lists/listinfo/nhibernate-development
©2008 gg3721.com - Jax Systems, LLC, U.S.A.