Throwing RemoteException from your bean code is depreciated. It is supposed to
be supported for backward compatibility. However, the spec doesn't explicitly
say that derived of RemoteException must be supported.
You should be using EJBException or a derived class for system exceptions. You
can also use other RuntimeExceptions where appropriate.
--Victor
krithikav wrote:
> Hi,
> When I throw a remoteexception from my EJB which has Container Managed
> Transaction, the
> container rollsback the database updates. However if I derive an Exception
> class from the
> RemoteException and throw the same from my EJB, the container does not
> rollback the transaction. Why is this so? Or am I making some mistake?
>
> Regards,
> Krithika
===========================================================================
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".