[cvs]
expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/job
Job.java
JCorporate Ltd
jcorp at jcorp2.servlets.net
Sun Sep 19 22:45:43 PDT 2004
Update of /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/job
In directory jcorp2.servlets.net:/tmp/cvs-serv31163/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/job
Modified Files:
Job.java
Log Message:
protect against null paramCode
Index: Job.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/job/Job.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** Job.java 6 Mar 2004 02:29:05 -0000 1.20
--- Job.java 20 Sep 2004 05:45:41 -0000 1.21
***************
*** 96,99 ****
--- 96,102 ----
* the user initiating the job. Jobs themselves are executed by JobHandler, and
* are also capable of getting queued in such a way as to repeatedly execute.
+ * DO NOT CALL sleep() or yield() during a job; jobs should run to completion/failure because at shutdown,
+ * jobs are assumed to stop on their own (no 'interrupt()' is given).
+ * So try to maintain <1 second in duration, generally speaking.
* @author Michael Nash
* @since Expresso 1.0
***************
*** 723,726 ****
--- 726,731 ----
protected String getJobParameter(String paramCode)
throws DBException {
+ if (paramCode == null) return null;
+
if (this.jobParameterValueMap == null) {
if (hasParameters()) {
More information about the cvs
mailing list