This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes B&S db interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "B&S db interface" Watch "B&S db interface" New topic
Author

B&S db interface

David Abramowicz
Ranch Hand

Joined: Dec 10, 2004
Posts: 56
Hi All!

I want to have an interface that is more or less exactly like the DB interface but throws java.rmi.Remote exception...

How can I do that in a nice manner. I can't subclass the interface as in that case I wont be able throw "extra" exceptions...

I mean, basically what I want is an interface that extends both remote and DB,...

What interface did you guys expose from the server and how?

Thanks /Dave
peter wooster
Ranch Hand

Joined: Jun 13, 2004
Posts: 1033
Originally posted by David Abramowicz:
Hi All!

I want to have an interface that is more or less exactly like the DB interface but throws java.rmi.Remote exception...

How can I do that in a nice manner. I can't subclass the interface as in that case I wont be able throw "extra" exceptions...

I mean, basically what I want is an interface that extends both remote and DB,...

What interface did you guys expose from the server and how?

Thanks /Dave


I've posted quite a bit of information on this recently. Do a search for "Proxy pattern" in this forum.
/peter
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: B&S db interface