When you say you're running the DA using a Quartz job, I'm guessing they're
both running in the same application and you're using Quartz to send an http
request. If that's the case, the most likely cause for your fault is that
you're not running with concurrent request handling enabled, thus causing your
app to deadlock (quartz invokes the direct action and waits for a response that
will never come, since the request handling thread is busy waiting for your
Quartz-invoked request to finish).
Run your application with WOAllowConcurrentRequestHandling=true.
Alternately (and much better) move your logic out of direct action classes so
Quartz can invoke your methods without sending a HTTP-request.
If this is not your problem, a better description than the whole thing fails
would help us help you :).
Cheers,
- hugi
// Hugi Thordarson
// http://hugi.karlmenn.is/
On 1.2.2010, at 16:42, Johan Henselmans wrote:
I have a direct action that runs from a curl job, but I would like to be able
to run the same job as a quartz job. Somehow I can not seem to find the
magic combination, as mailing from the DA works perfect, but when I call the
DA from a quartz job, the whole thing fails.
Does anyone have a code example that combines a quartz job with a direct
action to send a HTML email component?
Johan Henselmans
jo...@netsense.nl
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is
This email sent to h...@karlmenn.is
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com