Hi Irene,
I have the B&S assignment, but I believe much of the structure of the assignment is similar. I will try and answer the questions that I can.
1-Is correct to use a sockets instead of rmi???
You can use either sockets or rmi, which ever you prefer.
2-The interface may be in a package called propeties.db instead of properties.db ??
I think the interface is supposed to be in the suncertify.db package, along with your implementation of the Data.java class. That is how it is with my assignment at least.
3-I don,t understand :"1 byte deleted falg.0 implies valid record" ,I must introduce to end of each registry flag indicative in the file of the data base as if one was about a field but the registry?
There is a flag in each of the records to identify whether it is a valid record or a record that has been deleted. This allows you to reuse deleted record space when creating a new record. It is also a much simpler delete approach than actually removing the record from the file.
4-What are the means the magic cokie and lockcokie?
The magic cookie identifes the file as a data file. Check out
this link for more on that topic. The lock cookie is a unique number that is passed back to the client when it locks a record. Only the client that has the correct lock cookie can unlock, delete, or update a record.
5-is obligatory to always pass a way flag or it is possible to be omitted?
I am sorry, I am not sure what you mean by this question.
6-The distribution that I have I throw is the following one : ...
My suggestino would be to combine the db and DataBase packages. In my assignment, I have the following packages:
suncertify.db - Contains all code relating to the database
suncertify.remote - Contains networking code
sunceritify.gui - Contains the user interfaces as well as the application runner.
I hope this helped. Good luck.