|
From: Martin G. <ma...@mi...> - 2006-02-02 10:33:02
|
Hallo, when using Wrapper 3.1.2 with my Java application, my Java application requires to perform some specific actions during start/RESTART of JVM and shutdown of JVM. These actions include, but are not limited to: - deleting device lock files on certain platforms (e.g. serial line locks on Linux) - shutdown of heartbeat service The shutdown actions must be performed no matter what type of shutdown occured ( WrapperManager.restart(), stop, stopImmediate() calls; System.exit() call; crash of JVM (both in Java and Native code), killing JVM process from command line). Is it possible to configure wrapper to perform these actions (e.g. in the form of calling some scripts) ? The naive try = launching my script "runjava" (which performs the start actions, runs JVM and then performs shutdown actions) from wrapper.java.command does not work properly - wrapper was watching the /bin/sh instead of java process, sometimes java processes kept accumulating when I was playing (since wrapper took care for shell processes, not for the increasing number of JVM). Thanks in advance. Martin -- Martin Gazak e-mail: ma...@mi... |