logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harper, Allen \(AHARPER\)" <AHAR...@arinc.com>
Subject RE: FallbackErrorHandler hangs up thread
Date Thu, 03 Mar 2005 17:05:24 GMT
Ok, and thank your very much.
Al
 

-----Original Message-----
From: Curt Arnold [mailto:carnold@apache.org] 
Sent: Thursday, March 03, 2005 11:03 AM
To: Log4J Users List
Subject: Re: FallbackErrorHandler hangs up thread


On Mar 3, 2005, at 10:40 AM, Harper, Allen (AHARPER) wrote:
> I have added the FallbackErrorHandler in my XML config for failover if

> the JDBC appender fails.
>
> The JDBC appender is under control of the ASYNC appender.
>
> In my test I deliberately shutdown MySQL to cause DB access failure.
> FallbackErrorHandler does pick up on the failure and attempts to 
> switch over. Unfortunately in the error routine when the following 
> line is called the thread locks indefinitely. I can't seem to even 
> step into it.
>
> l.removeAppender(primary);
>
> Has anyone else run into this problem? Below is my XML config for 
> review. I urgently need this resolved and would appreciate any help.
>

FallbackErrorHandler has been removed from the log4j CVS due to
reliability issues and JDBCAppender has been deprecated in favor of
DBAppender.  Likely your best approach (assuming that you need to work
with 1.2.x) would be to extend JDBCAppender and implement whatever
fallback behavior you need there.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message