Hey We are having som trouble with our exceptionhandling in j2ee. From a session bean if a CreateException is caught, and afterwards is thrown as a homemade exception, this homemade exception is caught as a RemoteException in our businessDelegate. How can this be? We have the same design other places in our code, and we are not having this problem here. Any comments are welcome!!! Regards Ralph & Lars
posted 13 years ago
One way, this could happen is if your user-defined exception extends RuntimeException. Are you sure you are not throwing back any System Exceptions or Runtime Exceptions in the bean code, because all System exceptions are thrown as RemoteExceptions by the Container, to the remote client/business delegate?