boujnah5207 / sharp-architecture

Automatically exported from code.google.com/p/sharp-architecture
Other
0 stars 0 forks source link

Session Management #89

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I studied your architecture and I think it's very nice. However why don't
use the nhibernate contextual sessions system instead of your own system
(ISessionStorage) ?
http://nhforge.org/doc/nh/en/index.html#architecture-current-session

The northwind web application directly reference nhibernate dll
(global.asax), dont'you make a high coupling between your web application
and the DAL ? I think that The presentation layer should not contain any
references to such data acces but to a Service or Business layer. What do
you think about this ?

Managing corretly nhibernate session makes me headache. Do you have an idea
on how manage session with a WCF service ? (InstanceContextMode=PerSession
and InstanceContextMode=PerCall). I found this article, the system is to
open and close session with a service behavior attribute
http://www.igloocoder.com/archive/2008/07/21/nhibernate-on-wcf.aspx 

Best regards

Original issue reported on code.google.com by minsou...@gmail.com on 10 Apr 2009 at 2:31

GoogleCodeExporter commented 9 years ago
Concerning the ISessionStorage, there are a few ways to manage the NHibernate 
session 
and we'll be keeping the current approach for simplicity.

With respect to the dependencies within Web, other approaches could be used to 
move 
the dependencies to another layer or to a boot strapping mechanism, but the 
current 
approach is simple and reduces complexity.

WCF support has been added to both SharpArch and the Northwind sample code now.

Hope this helps!
Billy

Original comment by wmccaffe...@gmail.com on 17 Jun 2009 at 3:47