Why don't you test AsyncAppender to find out the answer? Or read the code?

In short, the answer is that AsyncAppender will block when its buffer is full.

At 07:34 18.02.2003 -0800, you wrote:
Sorry for the repost.  Any help on this, anyone, please?
Anuj.

--- Anuj Agrawal <[EMAIL PROTECTED]> wrote:
> Date: Wed, 5 Feb 2003 06:19:27 -0800 (PST)
> From: Anuj Agrawal <[EMAIL PROTECTED]>
> Subject: AsyncAppender assistance
> To: [EMAIL PROTECTED]
>
> Hi All -
>
> Here's what i'm wanting to do:
>
> I need to setup a logger that would send messages to an MQ Queue
> (which
> has been setup to receive messages onto the queue synchronously; i
> believe it can be setup to receive messages asynchronously, but
> that's
> not an option for me).  So to avoid the system slowing down cause the
> logging is waiting to put the message on the queue, i'm considering
> setting up a memory buffer where the logs can be written to, and have
> a
> separate thread pull the log messages off that buffer and into the
> queue.  The buffer would also have a max size, which when reached
> would
> spit out the logs in the buffer to a file(s).  This file(s) would
> then
> subsequently be read in by that separate thread at a later time (yes,
> the order of the logs are not important for me).
>
> Given the above scenario, it looks like i ought to be using the
> AsyncAppender, but i'm not sure how to go about handling the 'dump to
> file' bit.. in the documentation, it says that this appender uses a
> bounded buffer, but what happens when the buffer is full?
>
> Thanks for any help.
> Anuj.


__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

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

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

Reply via email to