Hi, my application is composed of a client application and several sql server databases which is accessed by wcf services.
My client apps use wcf services to manage the databases. I want the wcf services to use NHibernate to access the databases.
I need an ISessionFactory object for each database, right?
If thats so, i how do i keep a singleton object to contain the ISessionFactory objects, which can be acessed by my wcf services? Whats the best approach?
For the moment, i could use HttpContext.Application to store the ISessionFactory objects, but i don't think thats a good idea. I've read some ppl using Windows Services. Is this a good idea?
Whats the best practises to solve this problem?
Thanks,
MFelicio.
|