users@glassfish.java.net

Re: MDB performance

From: Scott Oaks <Scott.Oaks_at_Sun.COM>
Date: Mon, 08 Dec 2008 15:36:57 -0500

This is a little confused -- the CosTransaction.LogFile class writes
transaction log records to a file. It has nothing to do with FINE or
FINEST logging of messages.

Because multiple threads are updating the transaction log at the same
time, it must be synchronized

-Scott

On Sat, 2008-12-06 at 02:34, glassfish_at_javadesktop.org wrote:
> I assume it because saw LogFile source code :)
>
> All methods in this log synchronized on this. Rather then check log level and then enter in syncrhronized code. This cause situation when i don't want to log FINE or FINEST events (java.util.Logger is underlaying log system) but all threads blocked.
>
> PS. Maybe i'll try to create patch and see difference (if it will be)
> [Message sent by forum member 'dernasherbrezon' (dernasherbrezon)]
>
> http://forums.java.net/jive/thread.jspa?messageID=320420
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>