- //executor.shutdown();\r
- //executor.awaitTermination(3, TimeUnit.SECONDS);\r
-// } catch (InterruptedException e) {\r
-// log.warn(e.getMessage(), e);\r
-// }\r
- // Shutdown local engine\r
- log.info("JABAWS context is destroyed. Shutting down engines...");\r
- LocalExecutorService.shutDown();\r
- log.info("Local engine is shutdown OK");\r
- ExecutableWrapper.shutdownService();\r
- log.info("Individual executables stream engine is shutdown OK");\r
+ executor.shutdown();\r
+ executor.awaitTermination(3, TimeUnit.SECONDS);\r
+ } catch (InterruptedException e) {\r
+ log.warn(e.getMessage(), e);\r
+ }\r
+\r
+ // Shutdown local and cluster engines\r
+ log.info("JABAWS context is destroyed. Shutting down engines...");\r
+ LocalExecutorService.shutDown();\r
+ log.info("Local engine is shutdown OK");\r
+ ExecutableWrapper.shutdownService();\r
+ log.info("Individual executables stream engine is shutdown OK");\r
+ StatDB.shutdownDBServer();\r