• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adapter pattern

 
Ricardo Polero
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
 
vladimir levin
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic