• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:

URLyBird: Database and networking?

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Liar, liar, pants on fire! refreshing plug:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic