Hi, this is a cross-post of my question from stackoverflow; I hope
that's OK. I have code samples there:

http://stackoverflow.com/questions/8467246/

I'm using Henrik Feldt's NHibernate Facility with the AutoTx Facility.
My application is using the service/repository pattern, where an
ISessionManager is injected into the repositories, and the
repositories are injected into the services. Ideally, I'd like to add
[Transaction] attributes to my service interface methods, which would
wrap a transaction around the various DB operations made via the
repositories.

To test this, I'm throwing an exception in a transacted service method
right after making a repository call to insert data. I'd expect the
transaction to be rolled back, and no data to be saved in the
database. However, the data is still persisted.

If I inspect the callstack when in the transacted service method, I
don't see any 'wrappers' around my service code, which I would expect
if the AutoTx facility were active. Can anyone see what I'm doing
wrong?

Thanks,
Will

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to