...sent too soon... OnStop: dispose of container, which will dispose of the session factory. everything else is handled by windows service agnostic code.
On Sep 15, 8:18 am, Jason Meckley <[email protected]> wrote: > as a follow up with windows services. here is how i have been managing > it: I wonder why the book would say that NH is not a good fit for > windows services? after all the service is really just the entry > point. it could also be a web page, desktop or console app. that > wouldn't change how the system would interact with a database. there > is the issue of session management, but that exists with any > environment: web, desktop, console. > > I approach a windows services like this: > OnStart: initialize IoC conatiner, which includes building the session > factory > OnSt > > On Sep 15, 12:08 am, Fabio Maulo <[email protected]> wrote: > > > 2009/9/14 mitirino <[email protected]> > > > > :-)) oh, I'm sorry for the way my original post came out... I can see > > > it now but this was not my intention in any way... I like Hibernate > > > too much but obviously just learning it. > > > Me too. > > > -- > > Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" 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/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
