Hi Mailinglist,
here my DBAppender and AsyncAppender configuration:
<appender name="DB" class="org.apache.log4j.db.DBAppender">
<connectionSource
class="org.apache.log4j.db.DriverManagerConnectionSource">
<param name="driverClass" value="oracle.jdbc.driver.OracleDriver"/>
<param name="url" value="URL.to.database"/>
<param name="user" value="xxx"/>
<param name="password" value="xxx"/>
</connectionSource>
</appender>
<appender name="ASYNC" class="org.apache.log4j.AsyncAppender">
<param name="locationInfo" value="true"/>
<appender-ref ref="DB" />
<appender-ref ref="FILE" />
</appender>
The testing without the async logger shows to me, that the databse settings are
correct.
Greetings,
Andreas
-----Ursprüngliche Nachricht-----
Von: James A. N. Stauffer [mailto:[EMAIL PROTECTED]
Gesendet: Mi 20.02.2008 17:18
An: Log4J Users List
Betreff: Re: Async appender and database logging
I don't know if the AyscAppender has been fixed in that version.
Can you show how you are configuring the AyscAppender and DBAppender?
On Wed, Feb 20, 2008 at 10:11 AM, Andreas Grund
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm sorry, I forget to mention, that I use log4j-1.3-alpha8 in my
> application.
>
> Greetings,
> Andreas
>
>
> -----Ursprüngliche Nachricht-----
> Von: James A. N. Stauffer [mailto:[EMAIL PROTECTED]
> Gesendet: Mi 20.02.2008 17:06
> An: Log4J Users List
> Betreff: Re: Async appender and database logging
>
>
>
> Beware that AsyncAppender had bugs and I think you need 1.2.15 to get the
> fix.
>
> On Wed, Feb 20, 2008 at 9:40 AM, Andreas Grund <[EMAIL PROTECTED]> wrote:
> > Hi Mailinglist,
> >
> > I tried to log into a oracle database using the existing DBAppender. To
> > get a little bit more performance and to ensure, that my application is
> > not block during logging, I wrapped the DBAppender in my configuration
> > with a Async Appender. But this causes some problems. I got reproducable a
> > SQLException, that the connection to the database could not be
> > established. This problem does not occur, if I remove the Async appender.
> > Does anybody know, if there is a known problem describing this situation?
> > Or is there a possibility to configure a max number of connections to the
> > database and that I log to many messages, so that this max number of
> > connections is excessed?
> >
> > Thanks for your help!
> >
> > Greetings,
> > Andreas
> >
> > --
> > Andreas Grund
> > externer Mitarbeiter Projet GUTS bei Conti
> > mailto:[EMAIL PROTECTED]
> > Mobile:
> >
> >
> >
> >
> > Germany
> >
> > Phone:
> > Fax:
> >
> >
> >
> > Geschäftsführer: Ingo Kriescher
> > Amtsgericht Düsseldorf HRB48672
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> James A. N. Stauffer http://www.geocities.com/stauffer_james/
> Are you good? Take the test at http://www.livingwaters.com/good/
>
> ---------------------------------------------------------------------
> 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]
>
>
--
James A. N. Stauffer http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/
---------------------------------------------------------------------
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]