Also, a related issue was posted over at http://stackoverflow.com/questions/6771135/castle-automatic-transaction-management-facility-persist-issues
On Jul 22, 3:58 pm, Chuck <[email protected]> wrote: > Tally Ho! Figured it out! > > It turned out I had created a Default Interceptor Selector so that I > could apply logging aspect where needed. In doing this, I was messing > up the TransactionalInterceptor. Once I removed the Default > Interceptor Selector, the Transactions started working. > > Chuck > > On Jul 16, 10:40 am, Chuck <[email protected]> wrote: > > > > > > > > > I am trying to use the CFN plus ATM. I thought I had everything set > > up, but I am not getting Transaction support and could use any > > pointers given. > > > In my Persistence Installer, I am calling: > > > container.AddFacility<TransactionFacility>(); > > > container.AddFacility<NHibernateFacility>("nhibernatefacility.1", > > f > > => > > > f.ConfigurationBuilder<FluentNHibernateConfigurationBuilder>().IsWeb()); > > > I am trying to start a transaction from my Controller: > > [Transactional] > > public class PersonController : Controller > > > ... > > > [HttpPost] > > [Transaction] > > public virtual ActionResult Edit(int id, Person person) > > { > > try > > { > > var originalPerson = _repository.FindById<Person>(id); > > originalPerson.FirstName = person.FirstName; > > originalPerson.LastName = person.LastName; > > _repository.Save(originalPerson); > > return RedirectToAction("Index"); > > } > > catch > > { > > return View(); > > } > > > } > > > Any Ideas? > > > Chuck -- 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.
