Jeff
Any exception that specializes EJBException is a system exception.
Any system exception destroys the bean.
Any other exception is an application exception (apart from CreateException
& FinderException too) and they wont destroy the bean instance.
The critical difference is in the transaction support.
Application exceptions do NOT support automatic rollbacks, one has to use
EJBContext.setRollBackOnly() method to trigger a roll back.
- anand
Anand Kumar Sankaran
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Dave Wolf
Sent: Monday, September 18, 2000 8:01 AM
To: [EMAIL PROTECTED]
Subject: Re: System vs. Application Exception
Jeff,
Please review section 12.3.1 table 8 of the EJB 1.1 which gives very
explicity desriptions of what impact throwing a SystemException
(RemoteException or EJBException), an Application Exception or a
RuntimeException.
I dont want to make this confusing so Id suggest making a xerox of the table
and referring to it.
Dave Wolf
Internet Applications Division
Sybase
> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Sahol
> Sent: Monday, September 18, 2000 10:28 AM
> To: [EMAIL PROTECTED]
> Subject: System vs. Application Exception
>
>
> The Developer's Guide says that "If a system exception is thrown, the
> EJB
> container might destroy the bean instance." It gives some examples of
> system exceptions, but no general rule as to what exceptions should be
> considered "system exceptions." Does anyone know?
>
> Reason I ask is that I plan to rethrow exceptions from the EJB and don't
> want some unanticipated error to end up destroying EJB's, at least not
> without my knowledge.
>
> --
> Jeff Sahol
> [EMAIL PROTECTED]
>
> ==================================================================
> =========
> 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".