This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please help me to understand these requirements

 
Ben Zung
Ranch Hand
Posts: 109
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My assignment specs has the following "must"s regarding the non-network mode. I am really confused by the last two points. Please light me up.
non-network modeThe operating mode is selected using the single command line argument that is permitted. Architecturally, this mode must use the database and GUI from the networked form, but must not use the network server code at all.

What is the "networked form"?
And what the "network server code" refers to?
Thanks in advance.
Bing
 
Michael Couck
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bing,
There are two modes that you need to have, a "server/networked" mode and a "stand alone" mode. In the server mode you GUI must connect to the server and the server will perform functionality like booking and searching. In the stand alone mode the GUI will connect directly to a "database" file. The spec means that you must use the same GUI in the network and stand alone mode. In the stand alone mode, you must not use any code that is used in the server, the stand alone mode must be completely independant and fully functional without having a server running.
Hope this helps
Michael
SCJD
 
Denis Spirin
Ranch Hand
Posts: 72
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sure that by 'server', Michael means network server. You obviously still need the database 'server' to run in all modes.

Im sorry, but what does "database server" mean? I juct create object of class which is actually Data Access Object and performs IO to database file.
 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
Hi Denis,
Did you really implement a DAO approach? I've worked with the DAO pattern in a J2EE environment a while ago. I would be interested in how you applied DAO to the SCJD assignment.
Which assignment are/were doing anyway?
Regards,
Marcel
 
Denis Spirin
Ranch Hand
Posts: 72
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Marcel,
Which assignment are/were doing anyway?

I'm doing URLyBird, currently I test it and write documantation.

Did you really implement a DAO approach? I've worked with the DAO pattern in a J2EE environment a while ago. I would be interested in how you applied DAO to the SCJD assignment.

As said in instructions, I must create Data class which implements DBMain interface. I use DAO pattern; so that Data class is responsible for only IO operations with database file and, correspondingly, DBMain defines DAO API. Some methods (lock, unlock, isLocked and find), required by DBMain (proposed in instructions) are implemented, but marked as deprecated and their functionality is distributed between other classes.
Hope it helps,
Regards,
 
Ben Zung
Ranch Hand
Posts: 109
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are two modes that you need to have, a "server/networked" mode and a "stand alone" mode. In the server mode you GUI must connect to the server and the server will perform functionality like booking and searching. In the stand alone mode the GUI will connect directly to a "database" file. The spec means that you must use the same GUI in the network and stand alone mode. In the stand alone mode, you must not use any code that is used in the server, the stand alone mode must be completely independant and fully functional without having a server running.

I think it is very helpful. Thanks Michael.
I am thinking building a common interface which will be extended by both RMI interface and local data access interface should solve this problem.
Bing
 
Ben Zung
Ranch Hand
Posts: 109
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am thinking building a common interface which will be extended by both RMI interface and local data access interface should solve this problem.

Just like Mark S. mentioned in his reply to my another related topic.
 
Norbert Hasselberg
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am also a little bit confused about standalone and network mode. When in the standalone mode the client (gui) access the database directly, what should happen, when i start the client on zthe same machine twice ?? Then we would work on ONE database file and get errors because we can access the file only one time. Do we have to start the client only one time on the same machine ?
 
Denis Spirin
Ranch Hand
Posts: 72
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Norbert,
I think you can find answer here.
Good luck,
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic