• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: EOEditingContext miscommunication
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOEditingContext miscommunication


  • Subject: Re: EOEditingContext miscommunication
  • From: Lachlan Deck <email@hidden>
  • Date: Thu, 19 Mar 2009 07:23:50 +1100

On 18/03/2009, at 6:24 PM, Lemuel Raganas wrote:

Here's my problem:

I have an Entity called EInstitution with a string attribute named xmlData. This xmlData holds an xml encoded using WOXMLCoder. xmlData attribute holds all the information about images like height, width, etc. etc. I have a two applications that uses this entity. Application1 is where you you add images and descriptions. Application2 is where you displays all images, contents etc using DirectAction classes. The weird thing is that, when I made changes to the images attributes like height and width and call saveChanges() method it actually saves to the database however if I'm going to access Application2 and get that new height and width it never detects that changes made by Application1. Application2 can only get the new changes if I'm going to stop the session and run the session again using WOMonitor.

What am I doing wrong?

If you waited an hour I think you'll find the change will turn up. i.e., if you've not adjusted the first of the below options that'll be the default.


There's a few options:
- adjusting the an ec fetchTimestamp or globally via EOEditingContext.setDefaultFetchTimestampLag
- set the flag of your fetchSpec to refreshing = true (or doing so periodically)
- jms notifications between apps (more advanced)


with regards,
--

Lachlan Deck



_______________________________________________
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


References: 
 >EOEditingContext miscommunication (From: Lemuel Raganas <email@hidden>)

  • Prev by Date: Re: WOLips new Wonder app+framework creation fails
  • Next by Date: Re: [Wonder-disc] [ANN] WOCommunity Maven Repository
  • Previous by thread: EOEditingContext miscommunication
  • Next by thread: EOEditingContext problem
  • Index(es):
    • Date
    • Thread