As always I was too quick to answer your question.

What exactly do you want to do?  Do you want a remote exception or not?

Cheers

-----Original Message-----
From: Anish Malhotra [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 1:44 PM
To: [EMAIL PROTECTED]
Subject: Re: User Defined Exceptions in EJB


But the container will not interpret it as a Remote Exception. You can catch
this exception and then throw a remote exception if you want.

Anish

 -----Original Message-----
From:   Jay Walters [mailto:[EMAIL PROTECTED]]
Sent:   Monday, June 11, 2001 9:40 AM
To:     [EMAIL PROTECTED]
Subject:        Re: User Defined Exceptions in EJB

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

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