Given how common it will be for one bean to invoke a method on another bean, what are we supposed to DO with the RemoteExceptions that could be thrown? All I can think of to do is rethrow them as RuntimeExceptions... which the container will have to catch and rethrow as a RemoteException again! What gives?
-
In EJB 1.1, my business method can't throw RemoteException?? (1 messages)
- Posted by: Kevin Bourrillion
- Posted on: June 17 2000 02:29 EDT
Threaded Messages (1)
- In EJB 1.1, my business method can't throw RemoteException?? by Floyd Marinescu on June 20 2000 11:42 EDT
-
In EJB 1.1, my business method can't throw RemoteException??[ Go to top ]
- Posted by: Floyd Marinescu
- Posted on: June 20 2000 11:42 EDT
- in response to Kevin Bourrillion
I believe that the correct sequence of events is that a method throws "EJBException" if there are any system level (non business) problems. The appserver will then wrap this as a RemoteException.
I think the correct way to handle this is to catch your RemoteException and rethrow it as an EJBException.
take care,
Floyd Marinescu