Return-Path: Delivered-To: apmail-incubator-cayenne-user-archive@locus.apache.org Received: (qmail 30842 invoked from network); 13 Nov 2006 18:33:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Nov 2006 18:33:06 -0000 Received: (qmail 2288 invoked by uid 500); 13 Nov 2006 18:33:16 -0000 Delivered-To: apmail-incubator-cayenne-user-archive@incubator.apache.org Received: (qmail 2277 invoked by uid 500); 13 Nov 2006 18:33:15 -0000 Mailing-List: contact cayenne-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cayenne-user@incubator.apache.org Delivered-To: mailing list cayenne-user@incubator.apache.org Received: (qmail 2268 invoked by uid 99); 13 Nov 2006 18:33:15 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Nov 2006 10:33:15 -0800 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_NUMERIC_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [213.150.41.59] (HELO dkcphmx22.softcom.dk) (213.150.41.59) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Nov 2006 10:33:01 -0800 Received: (qmail 19994 invoked by uid 74); 13 Nov 2006 18:32:38 -0000 Received: from 2.253.241.83.in-addr.dgcsystems.net (83.241.253.2) by dkcphmx22.softcom.dk (envelope-from ) with ESMTP. tag msg.1163442758.146148.19488 (Processed in 0.124876 secs); 13 Nov 2006 18:32:38 -0000 X-SoftScan-Status: clean (virus: 1/1/1/1, spam: 0, paranoid: 1/1) Received: from 192.168.2.202 ([192.168.2.202]) by mail.x-change.se (Kerio MailServer 6.3.0) for cayenne-user@incubator.apache.org; Mon, 13 Nov 2006 19:32:37 +0100 To: cayenne-user@incubator.apache.org From: "Andreas Hjortsberg" Subject: Re: Docs and some questions In-Reply-To: 11571CC9-0645-472F-A34B-F495EB0F9D1C@objectstyle.org Message-ID: <20061113183237.f7fc60f5@mail.x-change.se> Date: Mon, 13 Nov 2006 19:32:37 +0100 X-Mailer: Kerio MailServer 6.3.0 WebMail X-User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/418.9 (KHTML, like Gecko) Safari/419.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hello and thank you all for your replies. Yes, you are correct Andrus, my intentions are to use an ordinary dataCo= ntext, and the reason is that my application must be able to work offlin= e. I looked through the code regarding JavaGroupBridge and it seems to me t= hat it is a quite straight forwarard to get two or more applications to talk to each other over a local network= , and the different datacontext will be updated etc.. =20 The more diffucult thing to implement will be to add some logic to commi= t the changes on the remote dataContexts to=20 their local databases. In the perfect world I don't need to care about it, because the remote c= ontext will be updated, and next time someone commit the changes on the= ir datacontext the local database will update on a correct manner, but if a= user refresh the data before it comes comitted I=20 will lose the changes to this datacontext. Now to my question; where should any of you add this logic=3F One could = make sure that the client application always commits changes before he d= oes=20 anything. It does not feel like a good solution, though. Another approch= would be to add another static datacontext for the application, which w= ill commit after any event has been received through the JavaGroupBridge= =3F Regards /Andreas > As Ari just mentioned, JGroups site is located here: >=20 > http://www.jgroups.org >=20 > Cayenne has built in support for using JGroups as a provider for =20 > cache synchronization. You can configure it in the Modeler: >=20 > * Check "Remote Change Notifications" for the DataDomain > * Click the "Configure" button next to it and enter the settings that = =20 > you need (or leave the defaults). >=20 > And of course you can use JavaGroupsBridge for your own custom =20 > messaging if you need functionality beyond just cache synchronization. >=20 > Andrus >=20 >=20 > On Nov 11, 2006, at 9:15 AM, Andreas Hjortsberg wrote: > > Hello, > > > > In the api docs for > > > > JGROUPS=5FCONFIG=5FURL=5FPROPERTY > > > > http://incubator.apache.org/cayenne/2=5F0/api/cayenne/index.html > > > > there is an invalid link for an example file. I think it's Filip's = =20 > > son who shows up, very cute though. > > > > http://www.filip.net/javagroups/javagroups-protocol.xml > > > > Is there anyone who knows where I can find another example=3F > > > > I'm about to start a project where all clients will have a local =20 > > swing application and database, probably derby or hsqldb. > > It is very important what then a client change some of his objects = =20 > > it is broad casted over the local subnet and the other clients will = =20 > > be updated and it also notifies a main server. > > > > Has anyone used cayenne and jgroups for this=3F Is it the path to = =20 > > take=3F I have looked around but have not found any example or =20 > > comments on this. Or is the existing integration between jgroups =20 > > and cayenne designed to mainly work between instances on a web =20 > > application=3F > > > > Regards > > /Andreas > > > > >=20 >=20 >=20