Author: tyrell
Date: Tue Jan 22 08:56:45 2008
New Revision: 12690
Log:
Deleting the job at undeployment, rather than unscheduling.
Modified:
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java
Modified:
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java
==============================================================================
---
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java
(original)
+++
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java
Tue Jan 22 08:56:45 2008
@@ -198,10 +198,10 @@
while (scheduledJobIds.hasNext()) {
try {
currentJobId = (String) scheduledJobIds.next();
- scheduler.unscheduleJob(currentJobId, null);
- log.info("Unscheduled the job with id " +
currentJobId + ".");
+ scheduler.deleteJob(currentJobId, null);
+ log.info("Deleted the job with id " + currentJobId
+ ".");
} catch (SchedulerException e) {
- log.error("Failed to unschedule the job with id "
+ currentJobId +
+ log.error("Failed to delete the job with id " +
currentJobId +
". Ignored and moving on.", e);
}
}
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev