Vadim,
This is possible with the Professional Edition of the Java Service
Wrapper using the following configuration:
wrapper.event.jvm_prelaunch.command.argv.1=/usr/bin/mycleanup
wrapper.event.jvm_prelaunch.command.argv.2=parameter1
wrapper.event.jvm_prelaunch.command.block=TRUE
wrapper.event.jvm_prelaunch.command.block.timeout=5
The block properties will tell the Wrapper to wait until the command
has completed or timeout after the specified amount of time.
There properties are described in more detail here:
http://wrapper.tanukisoftware.org/doc/english/props-event.html#commandThe full list of possible events when commands can be executed is here:
http://wrapper.tanukisoftware.org/doc/english/props-event.html#eventsWe would be happy to provide you with a trial license of the
Professional edition if you wish to test this out.
http://wrapper.tanukisoftware.org/doc/english/download.jspSincerely,
Leif Mortenson
Tanuki Software, Ltd.
On Thu, Oct 1, 2009 at 3:44 AM, Vadim Fattakhov <
vfattakhov@...> wrote:
> I have third party application that you the wrapper. I need to run some
> script before the Java application start/restart after failure. How should I
> configure the wrapper? Can you recommend me any solutions?
>
>
>
> Thank you,
>
> VF
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf_______________________________________________
Wrapper-user mailing list
Wrapper-user@...
https://lists.sourceforge.net/lists/listinfo/wrapper-user