• 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: EOModels occasionally loading too slowly?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOModels occasionally loading too slowly?


  • Subject: Re: EOModels occasionally loading too slowly?
  • From: Mike Schrag <email@hidden>
  • Date: Tue, 3 Nov 2009 16:46:25 -0500

if you have wonder source in your eclipse, you can add some debug printlns into ERXModelGroup in loadModelsFromLoadedBundles and resetConnectionDictionaryInModel and see when/what is being loaded.

ms

On Nov 3, 2009, at 4:40 PM, Paul Hoadley wrote:

On 04/11/2009, at 6:45 AM, Chuck Hill wrote:

I've never seen this and can't think of why they would not be loaded when the framework is referenced.  Are some of the frameworks not getting referenced until later?  Does adding

NSBundle.allBundles() to the Application constructor help?

No.

My only other idea is that you are somehow messing with application loading.

On 04/11/2009, at 6:52 AM, Mike Schrag wrote:

You're doing something weird.  Going completely out on a limb, I nominate touching EOF in a static initialization block as your problem.

If I am, I don't see it.  Here's the Application constructor:

public Application() {
ERXApplication.log.info("Welcome to " + name() + " !");
// Ensure that the DA request handler is the default
setDefaultRequestHandler(new ERXDirectActionRequestHandler());
}

Here's the parent's constructor:

public LSApplication() {
super();
setIncludeCommentsInResponses(INCLUDE_COMMENTS_IN_RESPONSE);
// Set the default TZ for NSTimestamps to GMT
NSTimeZone.setDefaultTimeZone(NSTimeZone.getGMT());
// Set the default TZ for Java
TimeZone.setDefault(TimeZone.getTimeZone("GMT"));
return;
}

That parent class extends ERXApplication.  The default page contains this method:

public NSArray<Notice> allNotices() {
return Notice.allCurrentActiveNotices(editingContext());
}

And that's where the trouble starts.  AFAICS, I'm not doing anything with EOF until didFinishLaunching().  I don't think I've got any static initialization blocks touching EOF.


-- 
Paul.

w  http://logicsquad.net/
h  http://paul.hoadley.name/

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
  • Follow-Ups:
    • Re: EOModels occasionally loading too slowly?
      • From: Paul Hoadley <email@hidden>
References: 
 >EOModels occasionally loading too slowly? (From: Paul Hoadley <email@hidden>)
 >Re: EOModels occasionally loading too slowly? (From: Gennady Kushnir <email@hidden>)
 >Re: EOModels occasionally loading too slowly? (From: Paul Hoadley <email@hidden>)
 >Re: EOModels occasionally loading too slowly? (From: Chuck Hill <email@hidden>)
 >Re: EOModels occasionally loading too slowly? (From: Paul Hoadley <email@hidden>)

  • Prev by Date: Re: EOModels occasionally loading too slowly?
  • Next by Date: Re: now trying to deploy, get an immediate error, probably a missing resource(s)?
  • Previous by thread: Re: EOModels occasionally loading too slowly?
  • Next by thread: Re: EOModels occasionally loading too slowly?
  • Index(es):
    • Date
    • Thread