> Hi All,
> Sorry to post this mail on this mailing list.But if some one could provide a
> solution.....
> We have "probably" a preliminary query.
> In our application we would like to write to one log file by multiple
> processes.The problem we are facing is as follows:
> We have to implement one log class which would be static and a method of
> that class would be called by the respective
> applications.
>
> During writing to the file, the messages are being Garbled as shown below.
> Error Num Insert query is as follows:"....."
> Where the string "Error Num" actually is a complete string "Error Number is
> :100 ISAM Query" .
>
> This is because multiple applications are trying to write to the file at the
> same time.
> We have implemented RandomAccessFile.Method is RandomAccessFile.WriteBytes()
> We request for a solution in terms of brief pointers or a detailed solution.

If you were to use Syslog, you would have remote ( or local ) logging via
a standard UNIX protocol that would solve this problem. I have implemented
Syslog completely in Java. You can find it here:

   <http://www.ice.com/java/syslog/>

tim.
Tim Endres  -  [EMAIL PROTECTED]
ICE Engineering, Inc.  -  http://www.ice.com/
"USENET - a slow moving self parody." - Peter Honeyman

===========================================================================
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".

Reply via email to