Greetings!
My problem is the following.
I have 4 entity beans. Each can throw exception.All of them throw the same
exception.
That is beans A,B,C and D all throw exception R with codes e,f,g, and h.
I have some number of session beans. Let us say 2 (I and J)
The session bean throws a exception back to the client, both throw the same
exception but with a different error code as the arguement of the exception.
I am using BMP.
Now the process is such that I need detailed error logging.
So error logging is being handled as follows.
Logging is like this.
Entity beans write a technical message to the log with the name of the bean
throwing the exception.
Session bean will write the name of the bean , the name of the function and
a user friendly message.
Let me explain user friendly message in a little detail.
For example if InvoiceEntityBean fails the session bean will write that the
Invoice Information could not be located if it called findByPrimaryKey of
InvoiceEntity bean.
Now my problem is , writing the code is becoming a hell of a job.
I would like to separate the error logging part.
Now I am calling the entity beans function. Putting a try catch around it
and the handling the error.
If in a function I call 3 or 4 entity beans , My code is becoming
unreadable.
Help!
Ravi

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