Re: mailing from quartz and a direct action
Re: mailing from quartz and a direct action
- Subject: Re: mailing from quartz and a direct action
- From: Hugi Thordarson <email@hidden>
- Date: Mon, 1 Feb 2010 17:54:35 +0000
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
> email@hidden
>
>
>
> _______________________________________________
> 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
_______________________________________________
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