[JIRA] Created: (CAY-575) Peer CayenneContexts on the remote client do not synchronize changes with each other - bug in ClientChannel

From: Andrus Adamchik (JIRA) ("Andrus)
Date: Wed Jun 21 2006 - 06:07:48 EDT

  • Next message: Andrus Adamchik: "Re: Next Step?"

    Peer CayenneContexts on the remote client do not synchronize changes with each other - bug in ClientChannel
    -----------------------------------------------------------------------------------------------------------

             Key: CAY-575
             URL: http://issues.apache.org/cayenne/browse/CAY-575
         Project: Cayenne
            Type: Bug

      Components: Cayenne Core Library
        Versions: 1.2
        Reporter: Andrus Adamchik
     Assigned to: Andrus Adamchik
         Fix For: 1.2

    If we have two peer contexts on the client created like this:

            ClientChannel clientChannel = new ClientChannel(c, true);
            CayenneContext c1 = new CayenneContext(clientChannel);
            CayenneContext c2 = new CayenneContext(clientChannel);

    and we modify and commit objects (modification = one of simple property, to one rel, to-many rel), the othe context do not see the changes without a refresh. It turns out that common channel events are posted by ClientChannel with source beeing a peer context , isntead of the channel itself, and are therefore ignored by the listener

    -- 
    This message is automatically generated by JIRA.
    -
    If you think it was sent incorrectly contact one of the administrators:
       http://issues.apache.org/cayenne/secure/Administrators.jspa
    -
    For more information on JIRA, see:
       http://www.atlassian.com/software/jira
    



    This archive was generated by hypermail 2.0.0 : Wed Jun 21 2006 - 06:09:16 EDT