I googled Domain Events a bit and I see they are explicit in nature. One has to raise an event in code.
If I have two views in my app, each bound to a different session, is there a way to make one session notify the other when it updates an entity, so the other would refresh it? If there is what I had in mind was to maybe make an uNH addon that could work with various db engines to use their notification services to make this kind of thing implicitly work accross different application instances. But thinking about it, something like DE seems easier. I did read 'Building a desktop app using NHibernate' (http:// msdn.microsoft.com/en-us/magazine/ee819139.aspx) On Mar 21, 2:03 pm, Fabio Maulo <[email protected]> wrote: > do you mean something as DomainEvents, a central message-queue and > various clients listening messages and events ? > You already have some specific frameworks doing it; NH is about persistence. > > -- > Fabio Maulo > > El 21/03/2011, a las 09:47, "H.Alex" <[email protected]> escribió: > > > > > Fabio, do you have an implementation in mind? Did you mean that there > > should be some custom notification broadcast? > > > I know NH doesn't supprort notification services via e.g. SQL Serv > > because it is db-engine agnostic. Is there an effort to support > > various notification services? > > > On Mar 20, 11:44 pm, Fabio Maulo <[email protected]> wrote: > >> The other workstation should shout "I HAVE INSERTED/UPDATED A CUSTOMER!!!!" > >> and your workstation should listen the shout. > > >> On Sun, Mar 20, 2011 at 7:13 PM, Robert <[email protected]> wrote: > >>> Hey there, > > >>> I am new with NHibernate, and stuck on a little problem, so i hope you > >>> can help me. > > >>> To start with, i created a new class for example "Customer" and did > >>> the NHibernate mapping stuff. > >>> This works all well, Create a new object of this class and the > >>> database is updated as it should be. > > >>> And here starts my problem: On startup of the software, a list with > >>> all objects is created via > > >>> public IList<Customer> GetAllCustomers() > >>> { > >>> using (ISession session = NHibernateHelper.OpenSession()) > >>> { > >>> ICriteria custCriteria = > >>> session.CreateCriteria(typeof(Customer)); > >>> IList<Customer>customerList = > >>> custCriteria.List<Customer>(); > > >>> return customerList; > >>> } > >>> } > > >>> But there are other workstations with this software too, who are > >>> updating the database, so i have to keep this list updated all the > >>> time. Any idead how to realize it? > > >>> Kind regards > > >>> -- > >>> 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. > > >> -- > >> Fabio Maulo- Hide quoted text - > > >> - Show quoted text - > > > -- > > Have a nice day. > > > -- > > 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 > > athttp://groups.google.com/group/nhusers?hl=en.- Hide quoted text - > > - Show quoted text - -- 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.
