On Feb 11, 2009, at 5:32 PM, Lachlan Deck wrote:

Hi Chuck,

On 12/02/2009, at 5:28 AM, Chuck Hill wrote:

Use Wonder.  Set main() in Application up like this:

  public static void main(String argv[])
  {
ERXDatabaseContextMulticastingDelegate.addDefaultDelegate(new ERXEntityDependencyOrderingDelegate()); // Ensure that we get proper error pages when an exception happens in a direct action. // This must go here and not in the constructor or it won't work.
      System.setProperty("WODisplayExceptionPages", "true");
      WOApplication.main(argv, Application.class);
  }

Is it too late doing this in installPatches()?


I have no idea. It has to happen early, before EOF gets initialized. I don't extend ERXApplication, so you pudding eaters might have a better way. You can also force it in too. This works for me and it is one line, so I use it.



Chuck

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
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