Thanks for the pointers Andrus.
Jurgen
-Original Message-
From: Andrus Adamchik
Sent: Monday, August 18, 2014 10:18 PM
To: user@cayenne.apache.org
Subject: Re: Remote Change Notifications
It’s been a while since I used it, so I may have the details wrong, but..
DataContext fires an
It’s been a while since I used it, so I may have the details wrong, but..
DataContext fires an event whenever it merges snapshot changes coming from its
parent. The original cause of the event may be a peer context commit in the
same VM or in a different VM. It works the same.. So you might do t
Thanks Andrus
Say now I want to update my GUI when a change occurs, how do I know that an
object has been updated ?
regards
Jurgen
-Original Message-
From: Andrus Adamchik
Sent: Monday, August 18, 2014 1:52 PM
To: user@cayenne.apache.org
Subject: Re: Remote Change Notifications
Wh
Thank you very much Andrus! It works great! :)
- Tore.
On 18 Aug 2014, at 16:25, Andrus Adamchik wrote:
> Hi Tore,
>
> Wrap it in a Module, and use bind .. toInstance:
>
> Module m = new Module() {
> @Override
> public void configure(Binder binder) {
> binder.bind(DataSourceFactory.
Oh and if you are on java 8 you can probably use a lambda, so I haven’t tried
myself yet:
new ServerRuntime(“cayenne-mydomain.xml”,
binder -> binder.bind(DataSourceFactory.class).toInstance(myFactory));
Andrus
On Aug 18, 2014, at 5:25 PM, Andrus Adamchik wrote:
> Hi Tore,
>
> Wra
Hi Tore,
Wrap it in a Module, and use bind .. toInstance:
Module m = new Module() {
@Override
public void configure(Binder binder) {
binder.bind(DataSourceFactory.class).toInstance(myFactory);
}
}
runtime = new ServerRuntime(“cayenne-mydomain.xml”, m);
Or if you are not averse to
Hello.
How should I inject a custom DataSourceFactory? I have tried this, but it still
try to use the DataSourceFactory in the model. This is going to have multiple
ServerRuntimes - one for each database.
runtime = new ServerRuntime(“cayenne-mydomain.xml");
runtime.getInjector().injectM
When you enable remote notifications, Cayenne send and listens to events
itself. The are object commit events to be sure, containing change deltas. When
an event is received, it is processed by the DataDomain, with the result being
that all its contexts update their copies of objects from the e
Hi All
If you have “Remote Change Notifications” enabled (using JavaGroups, JMS,
etc.), how does Cayenne let you know when a change has been received ?
Or how does one listen for these changes / notifications ?
Thanks, regards
Jurgen