|
From: <nic...@uk...> - 2005-10-19 15:42:10
|
Are there hooks into these JVM lifecycle events (ie some way of notifying
the outside world that a restart has occurred?)
-Nick
Internet
le...@ta...@lists.sourceforge.net - 19/10/2005 14:57
Please respond to wra...@li...
Sent by: wra...@li...
To: wrapper-user
cc:
Subject: Re: [Wrapper-user] I want to do sthg when I reach
wrapper.max_failed_invocations!
Sebastien,
This kind of thing is in the works for a future version. But for now it
is not
directly supported.
There is a simple workaround however. Write a new main class. In it
simply do the following:
public void main( String[] args )
{
if (WrapperManager.getJVMId() <= 5 )
{
MainClass.main( args );
}
else
{
RecoveryClass.main( args );
}
}
Then increase the max failed invocations from 5 to 6.
Cheers,
Leif
Sebastien Chateau wrote:
> Hi,
> I'm using this great product to wrap my java application (some kind of
> client multimedia player) and I'm totally satisfied with it. So I'd like
> to first say thanks for developping it.
> Now, let my explain my will : my application is relatively unstable yet,
> and some conditions can make its lauch impossible. I have set
> /wrapper.max_failed_invocations /with value 5. After 5 failed
> invocations, the wrapper stops invoking, like it's supposed to do.
> Now, I'd like to be able to "catch" this "giving up event", and for
> example trigger the invocation of another main class on this giving up.
> My purpose is to keep a trace of these events (e.g. in a local file)
> because they reveal important information to me.
> Is there any way to do this? Thanks in advance!
> Seb
>
> PS : for now I regularely check the file "wrapper.log" and look inside
> if I can find the pattern "There were 5 failed launches in a row, each
> lasting less than 300 seconds. Giving up."
>
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Wrapper-user mailing list
Wra...@li...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.
**********************************************************************************************
BNP Paribas Private Bank London Branch is authorised
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in
the United Kingdom.
BNP Paribas Securities Services London Branch is authorised
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in
the United Kingdom.
BNP Paribas Fund Services UK Limited is authorised and
regulated by the Financial Services Authority
|