Hi,
I'm writting an application with architecture applet-servlet-ejb. When
I try to handle exception more systematically, I have the following
questions :-
1. Since I use CMP entity bean, there's no findby method in my XXXBean. How
can I use my custom exception in findby method??
2. How can I throw a custom exception in a catch clause of a servlet?? I
always get error like "unreported exception: NoRecordFoundException; must be
caught or declared to be thrown."
2. After servlet catch exception, how can I inform my applet. In my case, I
try to send a primary key from applet to servlet, then the servlet uses EJB
to get record from database. The servlet then uses a class to hold the
result and send back to applet. If there is no record found in the
database, EJB will throw FinderException which will be caught by servlet.
However, what the applet will throw is java.io.StreamCorruptedException cos
it receive an null object from servlet. This is not what I want.
Please help. Thanx in advance.
Albert
===========================================================================
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".