Gnana,
The Wrapper trigger feature does not detect and trap the actual
exceptions. Rather it
is monitoring the console output of the JVM for certain text strings.
If any of the exceptions
that you mentioned are thrown, the Wrapper will only detect them if they
are logged to the
console for any reason. This is the default behavior of the JVM if the
exceptions are
uncaught.
For this reason, it is not actually necessary for you to throw the
exceptions. Simply
doing the following will work:
System.out.println( "java.lang.OutOfMemoryError" );
Cheers,
Leif
500652126 wrote:
> Hi,
>
>
>
> I am an application administrator (JBoss & Apache) and has not
> developed any application. I will talk to the developers and see if
> they can help. In the meanwhile please suggest of any other alternatives.
>
>
>
> Thanks & Regards,
>
> -GnanaShekar-
>
>
>
>
>
> -----Original Message-----
> *From:* wra...@li...
> [mailto:wra...@li...] *On Behalf Of
> *Earnie Dyke
> *Sent:* Friday, April 08, 2005 6:11 PM
> *To:* wra...@li...
> *Subject:* RE: [Wrapper-user] How to test the wrapper properties.
>
>
>
> Shouldn't you be able just to Throw each of these Exceptions in your
> application? Or am I missing a nuance? :-)
>
>
>
> Earnie!
>
> -----Original Message-----
> *From:* wra...@li...
> [mailto:wra...@li...]*On Behalf Of
> *500652126
> *Sent:* Friday, April 08, 2005 6:41 AM
> *To:* wra...@li...
> *Subject:* [Wrapper-user] How to test the wrapper properties.
>
> Hi,
>
>
>
> I have used method 1 to integrate Java Service Wrapper with
> JBoss. I have added the following properties in the wrapper.conf.
>
>
>
>wrapper.filter.trigger.1=java.lang.OutOfMemoryError
>
>wrapper.filter.action.1=RESTART
>
>
>
>wrapper.filter.trigger.2=java.lang.StackOverflowError
>
>wrapper.filter.action.2=RESTART
>
>
>
>wrapper.filter.trigger.3=java.lang.VirtualMachineError
>
>wrapper.filter.action.3=RESTART
>
>
>
>wrapper.filter.trigger.4=java.lang.InternalError
>
>wrapper.filter.action.4=RESTART
>
>
>
>wrapper.filter.trigger.5=java.lang.UnknownError
>
>wrapper.filter.action.5=RESTART
>
>
>
> But I do not know how to test these. Please suggest.
>
>
>
> Thanks & Regards,
>
> -GnanaShekar-
>
|