when I call this method, i cannot catch MyException... should i catch RemoteException?? EJB doesn't throw user defiend Exception??
posted 10 years ago
Originally posted by julie sohn: EJB doesn't throw user defiend Exception??
EJB does throw User Defined Exceptions. Remote Exceptions should be declared to be thrown in remote component interfaces and beans. These are thrown when there is any problem in trying to access remote objects for any reasons. You can also throw user defined exceptions together with remote exceptions.
You need to make sure that you have same method signatures in remote component interface and bean implementation class.