• 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

local/network mode

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. Right I have created a local database and remotes Databae, which implement the same interface for switching, and they both are stored at server site. Local database whose update() method don�t consider lock/unlock, whereas remote database needs. I am wondering if I need two copies of client programs (e.g. GUI's for local and remote modes): one copy at client for remote access to database and other copy at server for local access to database. When I run the local mode I will start the system at the server side. When I run the system in remote mode I will have to run at the client side.
2. I am using socket to do this assignment. There are only two tasks: search and book. I am wondering if one task (search) has finished, I need close socket. When another task starts (book), I open a socket and then close.
Am I right?
Thank you
Chaohua
 
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
"they both are stored at server site"
In local mode there is no server. So in local mode it does not start on the server. It always starts on client, and in local mode that is all there is no Sockets, no server.
Mark
 
reply
    Bookmark Topic Watch Topic
  • New Topic