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.
When i change essential data in the admin application and do a saveChanges()
on this data, it is not updated in the user application and the userapp
tries to access data under the old value (a directory name).

I restarted the user application, and everything is fine, but i can't
restart the user application after each change of a dataset :-)


What is the reason:
- a time gap?
- do i need a refresh of the data in the user app?
- any other (which) reason?

TIA

Wolfram


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:

This email sent to [EMAIL PROTECTED]


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to