|
From: Sebastien C. <sch...@mi...> - 2005-10-19 09:19:46
|
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." -- Sébastien CHATEAU Mirane SAS ------------------------- sch...@mi... www.mirane.com ------------------------- Tel : 05 57 77 12 15 Fax : 05 57 77 34 90 |
|
From: Sebastien C. <sch...@mi...> - 2005-10-19 09:21:14
|
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." -- Sébastien CHATEAU Mirane SAS ------------------------- sch...@mi... www.mirane.com ------------------------- Tel : 05 57 77 12 15 Fax : 05 57 77 34 90 |
|
From: Leif M. <le...@ta...> - 2005-10-19 13:58:04
|
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."
>
|
|
From: Sebastien C. <sch...@mi...> - 2005-10-19 15:28:29
|
Hi Leif, just thanks for your fast and appropriate answer. My problem is
solved. Do you want to marry me? ;)
Seb
Leif Mortenson wrote:
> 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
>
--
Sébastien CHATEAU
Mirane SAS
-------------------------
sch...@mi...
www.mirane.com
-------------------------
Tel : 05 57 77 12 15
Fax : 05 57 77 34 90
|
|
From: Leif M. <le...@ta...> - 2005-10-19 15:44:39
|
Sebastien Chateau wrote: > Hi Leif, just thanks for your fast and appropriate answer. My problem > is solved. Do you want to marry me? ;) > Seb Glad that worked for you. I usually settle for donations :-) Cheers, Leif |
|
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
|
|
From: Leif M. <le...@ta...> - 2005-10-19 15:47:30
|
nic...@uk... wrote: >Are there hooks into these JVM lifecycle events (ie some way of notifying >the outside world that a restart has occurred?) > >-Nick > > Not currently. There are requests to be able to execute arbitrary external commands when things like restarts take place, but they are not yet implemented. The only way to do this right now would be to check the WrapperManager.getJVMId() method when the JVM starts up and do any notifications from there if the id is greater than 1. Cheers, Leif |
|
From: <nic...@uk...> - 2005-10-19 16:02:23
|
Thanks Leif.
-Nick
Internet
le...@ta...@lists.sourceforge.net - 19/10/2005 16:47
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!
nic...@uk... wrote:
>Are there hooks into these JVM lifecycle events (ie some way of notifying
>the outside world that a restart has occurred?)
>
>-Nick
>
>
Not currently. There are requests to be able to execute arbitrary
external commands
when things like restarts take place, but they are not yet
implemented. The only way
to do this right now would be to check the WrapperManager.getJVMId() method
when the JVM starts up and do any notifications from there if the id is
greater than 1.
Cheers,
Leif
-------------------------------------------------------
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
|