• 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 in fbn assignement

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I need some help on this assignment :
1- one of the requirements is that the application
should in local(all networking "stuff" should be
bypassed then) mode as well as in networked mode.
Considering such a requirement, I found nothing that
could satisfy to this, except using serialization that
will allow the Data class to be downloaded if needed ,
to the server, and provide the database manipulation,
else it is accessed locally. To do so , I had to :
a - serialiaze the data class,
b - define a public Remote interface that offer the
same services as the data class
c - define another public Remote Interface that
allows client to select the data mode (remote or
local)
I have tested this on my pc and it seem to be working
fine. I need to test in a network environment to see
how it goes. But I don't feel comfortable about this
implementation :
- It sounds a little bit redundant to me : the
remote interface offering the same services as data,
just uses data to process request and return retuned
results from data ?!?
- It is quite heavy to install : 2 interfaces and
their implementation have to publish using their stub
and skeleton !
- The Remote Interface that define the data mode
(local or remote) has to be used even in local mode
(to get an instance of local data), what I think is
not respecting the requirement in some way (it is a
remote interface !)
Thanks for your lights on a better implementation !
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually you will have a copy of the data stuff in your client for use in local mode.
Mark
 
To avoid criticism do nothing, say nothing, be nothing. -Elbert Hubbard. Please critique this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic