• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!
Derick
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic