It is a really good way to blow up your exchange server... We had a
bug somewhere that generated exceptions in an endless loop. It took
exchange over a whole day to empty the queue.

Martijn

On 3/10/08, Edvin Syse <[EMAIL PROTECTED]> wrote:
> Wow, that's a very nice solution. Thanks :))
>
>  -- Edvin
>
>  Sebastiaan van Erk skrev:
>
> > I would say that the standard practice is probably to use your logging
>  > subsystem to email you the exception.
>  >
>  > For example, if you are using log4j to log, you could add something like
>  > this to your log4j.xml file:
>  >
>  >     <appender name="ERRORMAILER"
>  >         class="org.apache.log4j.net.SMTPAppender">
>  >         <param name="from" value="[EMAIL PROTECTED]" />
>  >         <param name="to" value="[EMAIL PROTECTED]" />
>  >         <param name="subject" value="[mydomain] ERROR" />
>  >         <param name="SMTPHost" value="localhost" />
>  >         <param name="threshold" value="ERROR" />
>  >         <layout class="org.apache.log4j.PatternLayout">
>  >             <param name="ConversionPattern" value="%d %-5p - [%C:%L]
>  > %m%n" />
>  >         </layout>
>  >     </appender>
>  >
>  > Regards,
>  > Sebastiaan
>  >
>  >
>  > Edvin Syse wrote:
>  >> Hi. In my application I do:
>  >>
>  >>         getApplicationSettings().setInternalErrorPage(ErrorPage.class);
>  >> 
> getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);
>  >>
>  >>
>  >> to display a custom page for error messages. I would also like to
>  >> email myself the exception - is it possible that I can get a hold of
>  >> the throwable from the ErrorPage.class, or do I have to explicitly
>  >> catch and rethrow a RestartResponseException to obtain the exception?
>  >>
>  >> -- Edvin
>  >>
>  >>
>  >>
>  >> ---------------------------------------------------------------------
>  >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >> For additional commands, e-mail: [EMAIL PROTECTED]
>  >>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.1 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to