Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

URLyBird: Database and networking?

Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

Im new at this ranch and have some problems understanding the assignment for URLyBird regarding the networking and database specifications. I have been reading the assignment a couple of times but there is one thing I simply just don�t understand. However, there are a lot of "must" in theese sentences and better safe than sorry so... Please help :-)

It is clear that the application must be started from the command line using only 3 modes (server, alone or <empty> . This is how I have understood the different mods - please let me know if im wrong.

When launching "standalone" the "normal" client GUI should appear but not connected to a database on a server. Instead the application should use a local database and hence the user must specify where the local database is by selecting a .db file on the filesystem.

When launching the application clean of command line arguments the "normal" cilent starts where the user must supply the port/ip/name of the server to connect to.

When launching "server" a simple gui will be displayed where the user may choose where the database file is. However, in the assigment (in the chapter describing the server) it clearly says that the user MUST be able to choose a non-local or local database. It also says that if the user choose a local database, the networking MUST be disabled. As I understand it the server is completely useless without networking since no-one will ever be using it (no networking = no requests). Further I do not understand the need for anything else than a local database on the server. Should you (in the server application) be able to point out a non-local database on say another machine?
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Be wellcomed in the saloon and please read the naming policy again and update your display name. Reason for that your display name is not compliant to the naming policy.

Now, you are right on what you have considered what Sun means.

There are three flags for the command line, at least in my instructions.

Furthermore, the server access the database in local mode, at least in my case.

A remote client would call the server remotely. The remote call can be done by Socket or RMI. Your choice which protocol you want to implement.

If none client is remote, the server is not invoked. Anyway, the server should be registered in case a remote client starts.

I am pretty sure that old topics are going to help you. That is why I recommend to use the search button to see if there is already an answer to your question.

When I started SCJD I read the topics of the last two months to learn what other has already suggested, discussed.

I think that the reading was worth.
Abdel Kader
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, sorry for the name-issue, hope this is better. Thanks for the quick reply - I will start to investigate search buttons at this site right away
Oh, sure, you could do that. Or you could eat some pie. While reading this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic