This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes DBClient interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "DBClient interface" Watch "DBClient interface" New topic
Author

DBClient interface

Valeri Mikhailov
Greenhorn

Joined: Oct 18, 2002
Posts: 15
I am using common DBClient interface for local and RMI connection. Why do compieler ask to throw RemoteException for the interface methods?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17276
    
    6

Because you are extending Remote in your interface. If you have your interface throw Exception, it will handle your errors.
Mark


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Valeri Mikhailov
Greenhorn

Joined: Oct 18, 2002
Posts: 15
Thank you!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DBClient interface
 
It's not a secret anymore!