[Opensource] Job Handler
BSC
bsci at lycos.com
Sun Jun 23 21:50:39 PDT 2002
The job handling facility allows 1 or more jobs (background threads) to run concurrently. The maximum number of jobs is defined in the Setup by the MaxJobs parameter. However this piece of code:
/* See how many jobs we are able to run at once */
String maxJobsString = Setup.getValueRequired(getDBName(), "MaxJobs");
if (!maxJobsString.equals("")) {
try {
//maxJobs = new Integer(maxJobsString).intValue();
} catch(NumberFormatException ne) {
throw new ServerException("Cannot convert "
+ maxJobsString + " to a number");
}
}
...has commented out: 'maxJobs = new Integer...'. Has anyone been having problems controlling the maximum number of concurrent jobs? It seems the JobHandler class defaults the max to 20 jobs thus ignoring the value in the Setup table....
Does anyone know why this line is commented out? I uncommented it and it appears to work.
---
Aime
_________________________________________
Communicate with others using Lycos Mail for FREE!
http://mail.lycos.com/
More information about the Opensource
mailing list