Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Please help me to understand these requirements

 
Ranch Hand
Posts: 109
  • 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
 
Ranch Hand
Posts: 46
  • 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
 
Ranch Hand
Posts: 72
  • 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.
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • 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
  • 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
  • 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
  • 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.
 
Greenhorn
Posts: 9
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Norbert,
I think you can find answer here.
Good luck,
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic