• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

abt assg

 
Oliver He
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!
 
Barry Gaunt
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!
 
Paul Bourdeaux
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic