The User Interface ... must allow the user to search the data for all records, or for records where the name and/or location fields exactly match values specified by the user.
Your server ... must provide locking functionality as specified in the interface provided above.
the program must allow the user to specify the location of the database, and it must also accept an indication that a local database is to be used
Fola Fadairo wrote:I understand this to mean the command line argument should specify the start mode, standalone mode or connecting to a remote database.
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
Roberto Perillo wrote:
Howdy, Sergiy!
Partner, even though you won't be using all methods present in the interface that was provided to you (such as create or delete), I advise you to provide all of them in your remote interface. If these functionalities are added in the future, they are already there. Also, you have to implement all methods in your Data class, even the ones you won't be using.
Your server must be capable of handling multiple concurrent requests, and as part of this capability, must provide locking functionality as specified in the interface provided above.
Sergiy Kononenko wrote:For me this is not a question of design...
Sergiy Kononenko wrote:My server provide a method "book" on it's interface...
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
Roberto Perillo wrote:
Sergiy Kononenko wrote:For me this is not a question of design...
Sergiy Kononenko wrote:My server provide a method "book" on it's interface...
Partner, the locking mechanism ends up making you take some design decisions. For instance, you said that your server provides a method called "book". Are you sure this is the best place to put this method? The server is more related to infrastructure, so in my opinion, it's better to have a business/services layer that uses the server, which has methods like lock(), update() and unlock(), and put the book() method in the business/services layer. From this method, you use the locking mechanism, provided in the server.
Sergiy Kononenko wrote:Now I understand: you call "server" the data access class "Data.java" and I mean the whole server-side system - RMI + service layour + database.
how Sun going to test this class automatically if they do not specify how to supply a database file to it?
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
Roberto Perillo wrote:
Yeah, me too, partner. You got it wrong. The Data class can be used in the server environment as well, but it can also be used separately (in standalone mode).
Sergiy Kononenko wrote:
Roberto Perillo wrote:
Yeah, me too, partner. You got it wrong. The Data class can be used in the server environment as well, but it can also be used separately (in standalone mode).
Could you please explain more precisely what I got wrong, Robereto?
I also use the data access class in both cases. But every time I instantiate a new object of Data. I do not keep alive any common instance of it.
Sergiy Kononenko wrote:Could you please explain more precisely what I got wrong
But every time I instantiate a new object of Data. I do not keep alive any common instance of it.
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |