[Opensource] eContent and Job controls
Peter A. J. Pilgrim
peterp at xenonsoft.demon.co.uk
Fri Oct 18 17:58:32 PDT 2002
Mike R et al, this is Pete
I am trying recompile the eContent 2-01 source against EF 5.0 from CVS
and I got a lot of error, particular to do with JobQueues.
I see that the API has changed, but I can change a few methods
to do with `JobQueue', but I am not sure what to do with `JobQueueParam'.
See the code below and any help appreciated, TIA
// File: com/jcorporate/econtent/controller/RunBatch.java.orig
...
public void queueState(ControllerResponse myResponse,
ControllerRequest req) throws ControllerException {
try {
JobQueue jq = new JobQueue("SYSTEM");
jq.setDBName(req.getDBName());
jq.setField("UserName", req.getUser());
jq.setField("JobCode",
"com.jcorporate.econtent.job.RunBatch");
jq.setField("StatusCode", "N");
jq.add();
JobQueueParam jqp = new JobQueueParam("SYSTEM");
jqp.setDBName(req.getDBName());
jqp.setField("JobNumber", jq.getField("JobNumber"));
jqp.setField("ParamNumber", "1");
jqp.setField("ParamCode", "Batch");
jqp.setField("ParamValue",
req.getParameter("chooseBatch"));
jqp.add();
jq.setField("StatusCode", "A");
jq.update();
} catch(DBException de) {
throw new ControllerException(de);
}
So far I have change it to
JobQueue jq = new JobQueue();
jq.setDBName(req.getDBName());
jq.setUserName", req.getUser());
jq.setJobCode", "com.jcorporate.econtent.job.RunBatch");
jq.setJobStatusCode, JobQueue.JOB_STATUS_NEW);
jq.add();
But what about `JobQueueParam' ?
--
Peter Pilgrim
ServerSide Java Specialist
My on-line resume and for interview videos about myself, J2EE
Open Source, Struts and Expresso.
||
\\===> `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''
More information about the Opensource
mailing list