wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Please help me to understand these requirements Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Please help me to understand these requirements" Watch "Please help me to understand these requirements" New topic
Author

Please help me to understand these requirements

Ben Zung
Ranch Hand

Joined: Mar 25, 2004
Posts: 109
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

Joined: Nov 15, 2003
Posts: 46
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

Joined: Mar 22, 2004
Posts: 72
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.


Regards<br /> <br />Ph.D.<br />SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJD 2
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Mar 22, 2004
Posts: 72
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

Joined: Mar 25, 2004
Posts: 109
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

Joined: Mar 25, 2004
Posts: 109
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

Joined: Feb 26, 2004
Posts: 9
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

Joined: Mar 22, 2004
Posts: 72
Hi Norbert,
I think you can find answer here.
Good luck,
 
wood burning stoves
 
subject: Please help me to understand these requirements