• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

UrlyBird RMI Interface

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I've went through Monkhouse's book several time. I want to create rmi interface similar to what andrew did. The DBMain interface has read method as following:



I want to create RMI interface like:



But I get the overridden method does not throw the RemoteException. Can anybody tell me how to go about creating the above? I read somewhere that I should wrap RemoteException inside the RecordNotFoundException, so I removed the "throws RemoteException" from the method's signature and did the following in the implementation class of RemoteDBMain:


To do the above I've to put RemoteException in the throws clause as well which again invalidate the method signature and I get the overriden method does not throw RemoteException error.

Please let me know how to go about creating the rmi interface. Should i just copy the DBMain interface into RemoteDBMain and include the "throws RemoteException" in each method? or is there a better way of doing it?

Any suggestions would be highly appreciated.

Thankyou.
 
Bartender
Posts: 2292
3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, partner!

Please take a look here. I think it will be helpful!
 
moose poop looks like football shaped elk poop. About the size of this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic