This will work as you desire, put your exception in the throws clause on the
remote interface and bean implemenation and catch it on the client.

Cheers
Jay

-----Original Message-----
From: Rajat Bhatla [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 12:40 AM
To: [EMAIL PROTECTED]
Subject: User Defined Exceptions in EJB


Hi,

Is there any way I can throw a user-defined exception class that I
have extended from any exception to handle error conditions in an
entity bean? Will the container catch all these and interpret them as
RemoteExceptions? If there is a workaround, please suggest.

Thanks,
rajat

Enjoy being an Indyan at http://www.indya.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".

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