Hi All,
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.
I am wondering if there is a clean programmatic way to do this.
I have taken numerous tries at this issue over a couple of years and cannot figure out any other way to do it. I always get NULL WOContext in the ways that I have tried, etc
I know it may seem odd to even want a WOContext from a command line batch job, but I gotta have that in order to get my e-mail WOComponents, at least it seems that way to me.
Thanks,
|