Re: cache synchronization

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Fri Dec 30 2005 - 13:28:31 EST

  • Next message: Mike Kienenberger: "Re: Setting a relationship to a generic DataObject in order to log the primary key value"

    > But, while dataContextDelegate is called as said,
    > snapshotEventListener is
    > never called.

    ...

    > EventManager.getDefaultManager().addNonBlockingListener(
    > snapshotEventListener,
    > "snapshotsChanged",
    > SnapshotEvent.class,
    > domain.getSharedSnapshotCache().getSnapshotEventSubject(),
    > domain.getSharedSnapshotCache()
    > );

    Try dropping the last parameter - sender. This will ensure that ALL
    events for a given subject are passed to the listener:

    EventManager.getDefaultManager().addNonBlockingListener(
       snapshotEventListener,
       "snapshotsChanged",
       SnapshotEvent.class,
       domain.getSharedSnapshotCache().getSnapshotEventSubject());

    Andrus



    This archive was generated by hypermail 2.0.0 : Fri Dec 30 2005 - 13:28:40 EST