• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Two questions about UrlYbird

 
Gerenne Vives
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,
I have two questions about UrlyBird:

1-When I start the application , the mode is "a simple mode flag", this
talks about that he mode is a zero or a one.

2-When I must choose the dabase file in local mode , I have used a JFileChooser , but my question is , when I have to choose the database fil in other server (modo networked) , Can I use the JfileCooser too? , I do not know very clearly , since I must this.�

thans in advance
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Irene,
When I start the application , the mode is "a simple mode flag", this talks about that he mode is a zero or a one.


The mode flag is the "server" command line option, the "alone" command line option, or the non-existance of any command line option.

That is, the command line option is used as a flag to set the mode of the application.

When I must choose the dabase file in local mode , I have used a JFileChooser , but my question is , when I have to choose the database fil in other server (modo networked) , Can I use the JfileCooser too? , I do not know very clearly , since I must this.


You can use a JFileChooser for the server. You might like to think about creating a server GUI which will allow the server administrator to
  • define which port RMI will be using
  • Specify where the database file is
  • shutdown the server

  • Personally, I really dislike the idea of having a server application which requires a GUI to be manually run to start - I think a server application should be running as a daemon process in Unix, or as service in Windows. However for the purposes of the assignment I can see that having a server GUI will make it easier for the assessor to start/stop your server.

    Regards, Andrew
    [ March 18, 2005: Message edited by: Andrew Monkhouse ]
     
    Gerenne Vives
    Ranch Hand
    Posts: 60
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    this mean that I choose the database file in a server ??? , I thought that when I connect in mode server , I used the JFilechooser in a client , but I don,t know if you want say me that when I conect in mode server I should to use the JFileChooser in a server , this mean that the database file in mode server dont choose the user if no the person that start the server ???

    Thanks.
     
    Andrew Monkhouse
    author and jackaroo
    Marshal Commander
    Pie
    Posts: 12007
    215
    C++ Firefox Browser IntelliJ IDE Java Mac Oracle
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi Irene,

    In networked mode:

    When the administrator starts the Server application, you must allow them to choose the location of the database (where it physically exists on the local hard drives).

    When a user starts the Client application, you must allow them to specify the location of the database (the IP address or hostname of the server, and possibly the port number being used).

    It is important to realise that the location of the database from a client perspective is not a physical file on the hard drive. The physical file may be on a different computer and possibly even on a different operating system. So from a client perspective the location of the database is just the information on how to connect to the server.

    Note that all this information should be persisted between each run of the application.

    Regards, Andrew
     
    Gerenne Vives
    Ranch Hand
    Posts: 60
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    ok , this means that when I connect the server I choose the location of bd , and when I connect the client I choose where is the database file (the por or ip)? .

    Thanks
     
    Andrew Monkhouse
    author and jackaroo
    Marshal Commander
    Pie
    Posts: 12007
    215
    C++ Firefox Browser IntelliJ IDE Java Mac Oracle
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi Irene,

    Yes, that is correct.

    Regards, Andrew
     
    Gerenne Vives
    Ranch Hand
    Posts: 60
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    ok , thanks for your help.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic