In your main method do this:

 ERXExtensions.initApp(Application.class, new String[0]);

OR this

ERXExtensions.initEOF(new String[0]);

Having an Application class is weird since you don't need it, but there are
a few places where things can break if WOApplication.application() returns
null.  I'd start with the initEOF call and switch to initApp if it blows up.




On Fri, Apr 25, 2014 at 9:43 AM, John Pollard <[email protected]> wrote:

> Hi List,
>
> What is the sensible way to create a new application in Eclipse that uses
> EOF and a model, plus draws on Wonder bits and bobs, but isn't a web app
> i.e. has no web front end? I think Eclipse once had an EOF Application
> type, or I may have mis-remembered that.
>
> I can create a new Wonder app in eclipse and just not have any request /
> responses and launch my code from Application(), but that feels a bit
> wrong. I don't want it to talk to wotaskd or be started from JavaMonitor.
>
> Thanks in advance.
>
> John
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
>
> https://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com
>
> 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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to