You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Al Byers <by...@automationgroups.com> on 2010/02/25 20:49:15 UTC

Alternate JobSandbox

I would like to create an alternate JobSandbox that ends up using a
lower max thread-count. I have looked around and hope that I am
missing the easy way to do it.

I see that I could add another thread-pool to serviceengine.xml
(anyway to do that without having to modify ofbiz code?), but how do I
get a JobSandbox to use that pool?
Or how do I create another dispatcher (again, hopefully without having
to modify ofbiz code - just my custom webapp)?

The reason I want to do this is to meter the rate at which this
process happens. Are there better ways to do this?

Thanks for any help.

-Al

Re: Alternate JobSandbox

Posted by Scott Gray <sc...@hotwaxmedia.com>.
Hi Al,

I don't think it's possible currently, the JobPoller uses ServiceConfigUtil to retrieve the settings from serviceengine.xml but it only looks at the first service-engine element.

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 25/02/2010, at 12:49 PM, Al Byers wrote:

> I would like to create an alternate JobSandbox that ends up using a
> lower max thread-count. I have looked around and hope that I am
> missing the easy way to do it.
> 
> I see that I could add another thread-pool to serviceengine.xml
> (anyway to do that without having to modify ofbiz code?), but how do I
> get a JobSandbox to use that pool?
> Or how do I create another dispatcher (again, hopefully without having
> to modify ofbiz code - just my custom webapp)?
> 
> The reason I want to do this is to meter the rate at which this
> process happens. Are there better ways to do this?
> 
> Thanks for any help.
> 
> -Al