In the DAL, we create sessions and close sessions immediately when we:
get data, insert data, update data, or delete data. We create longer
running sessions for transactions that end with a commit or a
rollback. Otherwise, the sessions are closed. I tried GC.Collect()
immediately after BuildSessionFactory() and there was maybe a one meg
change. Nothing much. As for our product, it stems from a legacy DOS
application so most design decisions were made on that a long time
ago, including architecture. We use a wide array of methods of
sharing info between processes on the same machine and separate
machines (WM_* messages, MSMQ, etc) but generally each application
acts independently of each other. Ideally in the long term they would
slowly merge into a common business layer, and that's what we are
working towards, along with a new common DAL. Just the DAL is causing
us issues right now. :)
Thanks again.
On May 16, 1:04 pm, Ramon Smits <
ramon.sm...@gmail.com> wrote: