Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

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
 
What's that smell? I think this tiny ad may have stepped in something.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic