>public Whatever remoteMethod() throws Exception {
> try {
> // do some work
> } catch Exception ex ) {
> if ( txnInProgress ) {
> afterCompletion( false );
> }
> throw ex;
> }
>
>public void afterCompletion( boolean committed ) {
> if (! committed) {
> // roll back asynchronous txn
> }
>
I want to know, why not just throws it again and let container to handle it?
If it's a application exception, no rollback is occured, so wrap the exception in the
EJBException, it will do. Hope this help.
public Whatever remoteMethod() throws Exception {
try
{
// do some work
}
catch Exception ex )
{
throws new EJBExceptino(ex);
}
}
===========================================================================
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".