> Hi
>
> Both of these solutions are BAD !
>
> You should implement a queue which can take multiple threads
> writing log objects
> to the queue. You can do this without synchronization using
> the atomic features
> of the java language calculations and volatile variables.
Could you please give a code example?
> Then use one thread
> to pull the log objects of the queue and write them to the file.
>
> Locking on a shared object will bottleneck your performance,
> and JNI is discouraged
> in EJBs.
>
> Joel Crisp, Senior Java Architect, SUN PS Java Center (UK)
>
> Srinivasan VS wrote:
> >
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".