Transaction txn;
try {
txn = createTransaction(5 * 1000);
jce = (JobControlEntry)
space.takeIfExists(entry, txn, JavaSpace.NO_WAIT);
JobStat stat = null;
try {
switch(jce.jobAction.intValue()) {
case JobAction._SUSPEND:
stat = new JobStat(JobStat.JSUSPENDED,
JobStat.JRUNNING);
break;
case JobAction._RESUME:
stat = new JobStat(JobStat.JRUNNING,
JobStat.JRUNNING);
break;
default:
txn.abort();