Hi Pratima,
You can do this easily. Just write a singleton for debugging your messages.
This class will be running in the background. With this you can log messages
in the appropriate places , I mean where the possibility of occuring the
problems. For example if you want in a particular screen, after entering the
client into that particular screen, you may log messages in different parts
of the screen like immediately after entering into that screen, after
preparation of the sql query, after the execution of the query, before
getting the home interface, after getting the remote interface like in
different places you can call the method of your singleton debug class.
Hope you understand what I am saying. If you want I can send the template of
the code. That thread starts in the background whenever any user first
accesses the application and runs till you shut down the server. So every
user will use this object to write or log the messages they want into the
file.
Let me know if you are not clear.
Murthy
> -----Original Message-----
> From: Nambiar Pratima [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, June 19, 2000 4:06 PM
> To: [EMAIL PROTECTED]
> Subject: Logging in Enterprise Applications
>
> Hi
> Our requirement is to log messages from various components of our
> application (Servlets and EJBs)
> into a file. This is required for debugging purposes if something fails in
> the production environment. But since IO is not possible from an EJB, we
> are looking for alternatives. We do not want to log these messages into a
> database.
> Our requirement does not seem like an uncommon one. I am interested in
> knowing how this is implemented in other applications.
> Any suggestions would be very helpful.
>
> A quick reply would be greatly appreciated.
>
>
> Thanks
>
> Regards
> Pratima
>
> ==========================================================================
> =
> 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".
===========================================================================
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".