Hello Michael;

I tend to do this sort of thing when this is necessary, but I have not tried this line when it is not in a running WOA...

WOContext dummyCtx = new WOContext(new WORequest("GET","/","HTTP/ 1.1",null,null,null));

Possibly of interest; instead of creating a command-line utility for this sort of thing, I tend to use a producer-consumer arrangement with message queues to dispatch batch runs off to "wotaskd" managed instances which are dedicated to running batch jobs outside of a request-response cycle. This allows for large jobs to be partitioned into smaller jobs and dequeued over multiple CPU's.

cheers.

I have a new (old for me) twist on the old WebObjects command-line start up type stuff. We run nightly jobs for accounting and other things, and I need to be able to mail out WOComponents for statements, trouble ticket reminders, etc. The only way I have ever been able to get a command line WOApplication to be able to do this was to have it send itself a bogus WORequest and then call session() from the direct action in order to get it to instantiate a session, and thereby, a WOContext.

___
Andrew Lindesay
www.lindesay.co.nz



_______________________________________________
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