You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by "skip@thedevers" <sk...@thedevers.org> on 2008/03/15 22:19:56 UTC
runAsync
I am calling dispatcher.runAsync("computeEOQRequirements", context); from
another service to start the job up asynchronously. I have code in
computeEOQRequirements that writes to stdout whenever it first starts. It
seems that it takes like 4 seconds on a fairly skookum machine for it to
begin. The same service runs like instantly when called from the Run
Service button of the Web Tools interface.
The intent is to start the job now, but have it run in it's own thread so
the UI can be interactive for what might be an hour long computation.
Is there any way to control this startup time?
Is there any way to control the thread priority of the job?
Skip
No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1327 - Release Date: 3/12/2008
1:27 PM
RE: runAsync
Posted by "skip@thedevers" <sk...@thedevers.org>.
Once again, thanks Belgin. This worked a charm. Now all we need is a way
to set a lower priority on the thread.
Skip
-----Original Message-----
From: Bilgin Ibryam [mailto:bibryam@iguanait.com]
Sent: Monday, March 17, 2008 2:28 AM
To: user@ofbiz.apache.org
Subject: Re: runAsync
On Sat, 2008-03-15 at 14:19 -0700, skip@thedevers wrote:
> I am calling dispatcher.runAsync("computeEOQRequirements", context); from
> Is there any way to control this startup time?
You can call the service async w/o persisting it, like this:
dispatcher.runAsync("computeEOQRequirements", context, false);
Bilgin
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1329 - Release Date: 3/14/2008
12:33 PM
No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1329 - Release Date: 3/14/2008
12:33 PM
RE: runAsync
Posted by "skip@thedevers" <sk...@thedevers.org>.
Thanks Bilgin.
I saw that method, but didn't think that was what I was after. I'll give it
a try.
Skip
-----Original Message-----
From: Bilgin Ibryam [mailto:bibryam@iguanait.com]
Sent: Monday, March 17, 2008 2:28 AM
To: user@ofbiz.apache.org
Subject: Re: runAsync
On Sat, 2008-03-15 at 14:19 -0700, skip@thedevers wrote:
> I am calling dispatcher.runAsync("computeEOQRequirements", context); from
> Is there any way to control this startup time?
You can call the service async w/o persisting it, like this:
dispatcher.runAsync("computeEOQRequirements", context, false);
Bilgin
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1329 - Release Date: 3/14/2008
12:33 PM
No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1329 - Release Date: 3/14/2008
12:33 PM
Re: runAsync
Posted by Bilgin Ibryam <bi...@iguanait.com>.
On Sat, 2008-03-15 at 14:19 -0700, skip@thedevers wrote:
> I am calling dispatcher.runAsync("computeEOQRequirements", context); from
> Is there any way to control this startup time?
You can call the service async w/o persisting it, like this:
dispatcher.runAsync("computeEOQRequirements", context, false);
Bilgin