This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Since the client has a reference to an instance of a business interface and not a remote interface how will the client be able to handle exceptions that may occur when working with remoting? (Given that the business interface only throws application exceptions)
The client will get the application exception wrapped in another exception.
42
Mike Keith
author
Ranch Hand
Joined: Jul 14, 2005
Posts: 304
posted
0
Since the client has a reference to an instance of a business interface and not a remote interface how will the client be able to handle exceptions that may occur when working with remoting? (Given that the business interface only throws application exceptions)
Clients reference business interfaces, but underneath they still need to be generated impl classes that the Container can throw runtime exceptions from. An EJBException will wrap a RemoteException if one gets thrown from the RMI layer, you just aren't forced to catch it anymore. This is nice because most of the time you can't do anything reasonable with it in any case.