Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • 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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

RMI - How do i use the interface DB provided by sun

Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I`m done with my whole program for a local database side. I wrote
the program so that is uses a proxy class that will return or a local instance of the database or a remote instance via RMI.

The code should all be right. but..

The interface provided by sun does`nt throw RemoteException, so i cant use it in my DBImpl class.

DB is the interface class provided. this is the best solution i could come up with, but now in my DBImpl class i cant throw RemoteException on the methods i have to implement.

Does anyone have any ideas or is there another approuch to this??

Thanks a mil!!
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Derik,

There are a lot of threads already on this subject. One idea seems to be creating a new interface, with exactly matches the methods in DBMain interface provided by Sun, and changing the method signatures to throw IO/Remote Exception. have a look here -here
    Bookmark Topic Watch Topic
  • New Topic