I'm trying to integrate NHibernate into an existing ASP.NET project which is already using Spring.NET and the MVP pattern to achieve a clean separation of concerns. In other words, there is no data access code, or awareness thereof, in any of my Presenters/Views and I'd like to keep it that way.
However, the Spring.Northwind.Web example that ships with the Spring.NET source has each Web Controller (i.e. Presenter) taking an NHibernate ISessionFactory object as a constructor dependency. Based on my limited amount of reading, it looks like this coupling is necessary if one wants to use OSIV. Assuming I don't want to OSIV (still reading up on this), can I safely remove the ISessionFactory dependency from my Presentation tier? I would really appreciate it if more experienced NHibernaters could chime in with pros/cons and consequnces of not using OSIV or any other gotchas with this stack.
Many Thanks.