• 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

client / server.

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i don't understand something in my project specs it says that if a user wanted to by pass the network mode and just use the client mode then i must have a db file on client right but what if it's in case of a servet mode where does db file must be located ? I don't understand this very well. Can someone explain this part to me ? Thanks.
 
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ruslan,
The db on the client side for for local connection only. For the remote connection, the db is seated at the server on a remote machine. In summary, you need to have two copies of db, one at the client for local connection, and the other one at the server for remote connection.
Rudy
 
Ruslan Ivanov
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes i though that too but then i have to have them both in synch yes ? or it's not required ? Thanks for your response.
 
Rudy Yeung
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ruslan,
I myself do not make them in sync. Your client can support both local and remote connection, but not at the same time, which implies db synchronization is off the topic. Otherwise, the program will be very complicated. Can someone provide feeback on this please?
Rudy
 
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to my project specs, the program can be run in the local mode or in the network mode. I instantiate only one db object. For the local mode, the client takes a direct reference to that db object. For the remote mode, the client takes a remote reference to that same db object.
 
Ruslan Ivanov
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You've said nothing about where your db object is located and how your db object access the db.db file and where it's located.
 
eat bricks! HA! And here's another one! And a tiny ad!
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic