Thanks. This looks like the path I was looking for.

However, in the docs referenced below, it seems to say use something like this in the session:


        public NSArray languageList() {
return (NSArray )EOUtilities .objectsWithFetchSpecificationAndBindings( defaultEditingContext(), "Language", "FetchAllAvailableLanguages", null);
        }
        

That code works (I also set the fetchspec in EOModel to "shared", but I'm wanting to make sure I'm actually accomplishing my goal. That is, does the above code still get loaded into session memory? Or, because it is designated as defaultEditingContext and drawn from a "shared" fecthspec, does WO handle this smartly behind the scenes?

I kind of expected the code to be more like this in the application:

        private EOSharedEditingContext sharedEC = new EOSharedEditingContext();

        @SuppressWarnings("unchecked")
        public NSArray<Language> languageList() {
return (NSArray )EOUtilities.objectsWithFetchSpecificationAndBindings( sharedEC, "Language", "FetchAllAvailableLanguages", null );
        }


Regards,

Drew


On Jun 30, 2008, at 11:55 PM, Art Isbell wrote:

On Jun 30, 2008, at 5:25 PM, Drew Thoeni wrote:

So, if I want to make efficient use of memory by storing these rarely changing code table lists in the application, how does one go about storing them in an EC that the sessions can get to?

EOSharedEditingContext. See < http://developer.apple.com/documentation/LegacyTechnologies/WebObjects/WebObjects_4.5/System/Documentation/Developer/WebObjects/DeltaDoc/EOF.html#CBGCHAIA > for restrictions, caveats, etc.

Aloha,
Art

_______________________________________________
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/drewt7%40comcast.net

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