Runtime.getRuntime().addShutdownHook(sh);
where sh is a Thread
Problem is, in Unix it works only with CTRL-C, not witk kill -9 or kill -8 (abort).
In Windows, if I terminate my JVM with Eclipse's "terminate" button, the hook is not executed.
Anything about Java, WebLogic, OSB, Linux etc.... this is my logbook of a navigation in the IT Technology ocean.
No comments:
Post a Comment