Re: Data inconsistency between WOApps
Re: Data inconsistency between WOApps
- Subject: Re: Data inconsistency between WOApps
- From: Ken Anderson <email@hidden>
- Date: Mon, 17 Oct 2005 09:05:00 -0400
Yes. In the wirehose/David Neumann ChangeNotification framework, you
setup what entities to send, and what host/port to send them to.
It's useful both for multiple instances (on the same or different
machines) of the same app, or different apps that share eomodels.
On Oct 17, 2005, at 8:54 AM, Wolfram Stebel wrote:
Am 17.10.2005 13:10 Uhr schrieb "Ken Anderson" unter
<email@hidden>:
Thanks to both of you!!!
Is this necessary between instances of the same application too?
Do they share the object store?
Wolfram
There is another option - use one of the available tools that
notifies other instances of changed data. I've used the one from
Wirehose (http://www.wirehose.com/download) - but I believe there's
one in Project Wonder also.
Ken
On Oct 17, 2005, at 6:08 AM, Gennady Kushnir wrote:
Hi, Wolfram
WebObjects apps cache data when first fetched from database. There
are several ways for data cache to be updated.
1) restart application as you already mentioned.
2) perform objects refresh on editingContext used in your user
application. I do it with this:
EOSharedEditingContext.defaultSharedEditingContext
().rootObjectStore().invalidateAllObjects();
3) refresh objects in user application every time they are fetched.
It means fetchSpecification used to present data should be set to
refresh objects. If this fetchSpecification is defined in model -
you should set this option. If you define this programmatically:
fetchSpec.setRefreshesRefetchedObjects(true);
Regards,
Gennady
On 17.10.2005, at 13:09, Wolfram Stebel wrote:
Hi List,
i have two WOApps running on the same server.
They access the same data base. One is the user application, the
other is a
admin application.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden