Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

B&S db interface

 
David Abramowicz
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1033
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!