Justin,

If all you want to do is log Exceptions from a servlet , you can:
1. use the log() method of the GenericServlet
2. override the default behavior
3. implement your own logging mechanism.

Otherwise , if you want to log from EJBs , Pauls advise is acceptable.

Ishai

Justin Pham wrote:
>
> We are building an application using EJB and servlet using VAJ and
> Websphere.  In the servlet, we try to catch
> any exception and  depending on the kind of exception, we build a
> corresponding error message (timestamp, message_id, message_name,
> message_context) and throw into the log file. We have the following
> problem:
>
> 1. We have problem in reading the file path of  the log file in
> websphere.  Rightnow, we have to put the file path of the init parameter
> of servlet and read through this servlet by calling the
> getInitParameter( ). Inside websphere, we have problem to read directly
> the file path through the ResourceBundle object.  Does anyone have this
> kind of problem?
> 2.  If we have a hundred of different kinds of error messages, how can
> we store them efficiently if we don't like to put them in the database
> or any file.
>
> Thanks.
>
> Justin Pham
>
> ===========================================================================
> 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".

Reply via email to