Which version are you using? Did you marked the class as transactional? And btw, usually it's a bad ideia to have the controller as a transaction boundary.
On Jul 16, 11: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.
