• 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: command line EOF + WOContext
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: command line EOF + WOContext


  • Subject: RE: command line EOF + WOContext
  • From: email@hidden
  • Date: Sun, 5 Feb 2006 16:22:35 +1300

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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: command line EOF + WOContext
      • From: "Jerry W. Walker" <email@hidden>
    • Re: command line EOF + WOContext
      • From: "Jerry W. Walker" <email@hidden>
  • Prev by Date: Long delay after Application.java
  • Next by Date: Re: command line EOF + WOContext
  • Previous by thread: command line EOF + WOContext
  • Next by thread: Re: command line EOF + WOContext
  • Index(es):
    • Date
    • Thread