• 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: mailing from quartz and a direct action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >mailing from quartz and a direct action (From: Johan Henselmans <email@hidden>)

  • Prev by Date: Re: Does switching to servlet deployment serve a purpose?
  • Next by Date: Re: Does switching to servlet deployment serve a purpose?
  • Previous by thread: mailing from quartz and a direct action
  • Next by thread: Does switching to servlet deployment serve a purpose?
  • Index(es):
    • Date
    • Thread