Revision 5095
Added by daigle about 15 years ago
src/edu/ucsb/nceas/workflowscheduler/WorkflowSchedulerServlet.java | ||
---|---|---|
31 | 31 |
import java.sql.SQLException; |
32 | 32 |
import java.util.Enumeration; |
33 | 33 |
import java.util.Hashtable; |
34 |
import java.util.Timer; |
|
35 | 34 |
|
36 | 35 |
import javax.servlet.ServletConfig; |
37 | 36 |
import javax.servlet.ServletContext; |
... | ... | |
115 | 114 |
public class WorkflowSchedulerServlet extends HttpServlet { |
116 | 115 |
|
117 | 116 |
private static final long serialVersionUID = 1L; |
118 |
|
|
119 |
private Timer timer = null; |
|
120 | 117 |
|
121 | 118 |
// Constants -- these should be final in a servlet |
122 | 119 |
private static String LOG_CONFIG_NAME = null; |
... | ... | |
136 | 133 |
context.setAttribute("APPLICATION_NAME", APPLICATION_NAME); |
137 | 134 |
|
138 | 135 |
// Initialize the properties file |
139 |
String dirPath = context.getRealPath("./WEB-INF");
|
|
136 |
String dirPath = context.getRealPath("WEB-INF"); |
|
140 | 137 |
|
141 | 138 |
LOG_CONFIG_NAME = dirPath + FileUtil.getFS() + "log4j.properties"; |
142 | 139 |
PropertyConfigurator.configureAndWatch(LOG_CONFIG_NAME); |
... | ... | |
176 | 173 |
|
177 | 174 |
// Close all db connection |
178 | 175 |
logMetacat.warn("WorkflowSchedulerServlet.destroy - Destroying WorkflowSchedulerServlet"); |
179 |
timer.cancel(); |
|
180 | 176 |
// IndexingQueue.getInstance().setMetacatRunning(false); |
181 | 177 |
DBConnectionPool.release(); |
182 | 178 |
} |
Also available in: Unified diff
Remove unneeded references to Timer