• 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

Adapter pattern

 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi:
I have a doubt!
I finish my assigment only in remote mode, now Ineed to extend it for local access. I used callbacks, timers in server.
I know I need to use adapter in client side , but I'll need to do in server size too in order to support the call backs.
This means I'll need a local copy of Data in client maquine or
is the same as call RMI with "localhost" as a URL of server.
Please someone can light me in this ,
I'm so confuse !
Also in case of adapter in client need the public methods of Data throw Exceptions with catch blocks for remote and database exceptions ?
Thanks in advance
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't use network sockets for local mode!
 
Ricardo Polero
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I used RMI server. I create an adapter with composition in server side, but I not sure how can i create another adapter in client size for archieve the gol (Gui client neve know if is local or remote server). And I would know if we need a copy of Data in client package (jar) too.
Thanks
 
Ricardo Polero
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Please someone can give an idea that how can i make the access transparent in client to local or remote ?
Thanks
 
reply
    Bookmark Topic Watch Topic
  • New Topic