Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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 ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Adapter pattern

 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
 
If you were a tree, what sort of tree would you be? This tiny ad is a poop beast.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic