Justin -

>From memory, I think the issue of 'logging' in EJB systems has been
discussed on the list in the past - take a look at the archives.

Many of the problems derive from I/O restrictions in an EJB system. Most
solutions suggest some variant of JMS or RMI to take the logging outside
of the container.

>From our experience, we populated the JNDI tree with environment
settings that can be read as required. This seems to be direction that
the EJB spec is heading (see EJB 1.1. and the emphasis on JNDI to
configure the application).

You will also probably want to look at the recent posts on business vs
remote exceptions.

regards,

paul.

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

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

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