//ctxd.setJobid(lbjob);
if (job.getSequenceCode() != null) {
// ctxd.setSeqCode(new SeqCode(SeqCode.CREAM, "no_seqcodes_with_cream_register"));
// } else {
SeqCode sc = new SeqCode(SeqCode.CREAMWMS, job.getSequenceCode());
sc.incrementSeqCode(new Sources(Sources.CREAM_EXECUTOR));
job.setSequenceCode(sc.toString());
//ctxd.setSeqCode(sc);
if (jobDB != null) {
try {
jobDB.update(job);
} catch (DatabaseException ex) {
throw new LBException(ex.getMessage());
}
}
}
// ctxd.setSource(new Sources(Sources.CREAM_EXECUTOR));
EventRegJob reg = new EventRegJob();
reg.setNs(job.getCreamURL());
reg.setJobtype(EventRegJob.Jobtype.CREAM);
//ctxd.log(reg);
ContextIL ctx = new ContextIL(ILPrefix);
ctx.setJobid(lbjob);
if (job.getSequenceCode() == null) {
ctx.setSeqCode(new SeqCode(SeqCode.CREAM, "no_seqcodes_with_cream_register_cheat"));
} else {
ctx.setSeqCode(new SeqCode(SeqCode.CREAM, job.getSequenceCode()));
}
ctx.setSource(new Sources(Sources.CREAM_EXECUTOR));
ctx.setUser(job.getExtraAttribute("USER_DN_X500"));