File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes RMI and exception propagation Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "RMI and exception propagation" Watch "RMI and exception propagation" New topic
Author

RMI and exception propagation

Karl Fu
Ranch Hand

Joined: Mar 26, 2001
Posts: 41
Hi everyone,

I am new to this forum and I have just started on my assignment.
Will exceptions from server propagated through RMI to the client ?
I wanta know if I should catch the Database exception at my DataDBImpl class. I don't really want to declare the DataBase exception in my interface class because i think it will make the interface to be become less "general"
Please give me some feedback,
Thank you
Dilip kumar
Ranch Hand

Joined: Oct 16, 2000
Posts: 360
I feel the application should notify all errors to users. They should be aware the application is no longer fully functional due to some error.
Karl Fu
Ranch Hand

Joined: Mar 26, 2001
Posts: 41
So it means that exception does propagate from server to client through rmi and I should catch the exception in my swing client, am i correct ?
Doug Melzer
Ranch Hand

Joined: Mar 23, 2000
Posts: 51
Yes, for instance if you attempt to modify a record that has been deleted you would want to notify your user, so that they'll know why the modification failed.
 
 
subject: RMI and exception propagation
 
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture