• 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

abt assg  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am just passed the SCJP and start to do the SCJD, but i have few questions abt the assignment requirement. Can anyone give me some idea?

1. It says the application need have the function to provide user to select
the database file, so is it mean the database file and server program reside on different machine? Or on same machine, but choose the path(directory) of database file?

2. It says the client program needs to implement the Data.class methods,
But as what I thought, all implementation should be in server program, while the client program just Socket/RMI to Server, and revoke the server's methods that implement the Data.class methods do those things.
I am correct?

Thanks!
 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch "wowo". Please take a look at our JavaRanch Naming Policy and change your displayed name to conform with it.
-Thanks
Barry
 
Oliver He
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Sorry abt that.I have changed the name.

Cheers!
 
Ranch Hand
Posts: 783
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. It says the application need have the function to provide user to select the database file, so is it mean the database file and server program reside on different machine? Or on same machine, but choose the path(directory) of database file?

The database file and server program will run on the same machine, and you need to provide a way for the user to choose the path to the database file.

2. It says the client program needs to implement the Data.class methods,
But as what I thought, all implementation should be in server program, while the client program just Socket/RMI to Server, and revoke the server's methods that implement the Data.class methods do those things.
I am correct?


All access to the database file needs to go through the Data class. You are correct that the client program invokes business logic on the server that uses the Data class to access the database. Remote clients will use networking code (Sockets or RMI) to invoke this business logic, while a client running in stand alone mode will need some type of local code to invoke the same business logic...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!