Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Submission jar file / files?

 
Victor Bucutea
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,


As most of you must be bored with the same questions over and over again i don't expect you to be thrilled about this question, but facing the fact that i can't quite understand Sun's specs here it goes:



  • Do we need to submit 1 single jar file which will hold the server/client classes and which receives the "server"/"alone" parameters , or

    do we need to submit 2 jar files one which contains the server and receives the server/alone parameters, and one which is the client.



  • If 1st option , then what should the "alone" mode do?

    This statement gets kind of confusing :


    When you submit your assignment, each part (client and server) must be executable using a command of this exact form:
    java -jar <path_and_filename> [<mode>]

    The mode flag must be either "server", indicating the server program must run, "alone", indicating standalone mode, or left out entirely, in which case the network client and gui must run.


     
    Roberto Perillo
    Bartender
    Posts: 2271
    3
    Eclipse IDE Java Spring
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Howdy, Victor!

    Actually, it is only one .jar file that must be submitted. This file must have the structure mentioned in your instructions. The final file can be either a .zip or a .jar file, and this file must contain the runme.jar file (or another name indicated in your instructions), which is the file that will have all .class files of your project.

    The "alone" mode is when your application runs only locally, without accessing the server and accessing the .db file directly.
     
    Victor Bucutea
    Ranch Hand
    Posts: 43
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Howdy ,


    The "alone" mode is when your application runs only locally, without accessing the server and accessing the .db file directly.


    So when in server mode the application checks it's configuration and connects to the server, otherwise in alone mode it checks it's configuration and looks for the .db file ... OK ( correct me if i'm wrong )

    One more question ,
    Does the server use the .db file too ?


    Thanks,
    Victor
     
    Roberto Perillo
    Bartender
    Posts: 2271
    3
    Eclipse IDE Java Spring
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Well, here's the deal:

  • In client mode (when no flag mode is indicated), the application connects to a server that manages the data. The client is not responsible for accessing directly the .db file; instead, this step is intermediated by the server. When running the application in client mode, the server must be running already, and you can decide where the business logic of booking rooms or searching for rooms is going to be (client side or server side). Based on this, you will decide if you'll have a thin client of a thick client;


  • In server mode, all you have to do is run the server. You can use either RMI or Sockets. Your server will be responsible for accessing the .db file and implementing the locking mechanism, in order to keep the integrity of the database. Based on your choice of thin client or thick client, you will design your server. For instance, if you want to have a thin client, then your server will only have business methods, like book() or search(). If you want to have a thick client, then you will have to offer more operations (like lock(), update(), unlock() and so on), so that the business logic can be controlled on the client side;


  • In standalone mode, everything will be controlled locally (like, the access to the .db file, the locking mechanism, etc) and the server code must not be used at all.
  •  
    Victor Bucutea
    Ranch Hand
    Posts: 43
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator


    I trully thank you dear sir !!!
     
    Roberto Perillo
    Bartender
    Posts: 2271
    3
    Eclipse IDE Java Spring
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    You are very welcome, champion! If you have other doubts, please let us know, and we'll be glad to try to help!
     
    Roel De Nijs
    Sheriff
    Posts: 10662
    144
    AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi Victor,

    Could you change your first post: replace the code-tags with quote-tags. It will improve the readibility of this thread.

    Thanks!
    Kind regards,
    Roel
     
    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
    Roel De Nijs wrote:Could you change your first post: replace the code-tags with quote-tags. It will improve the readibility of this thread.

    Oops - I changed it immediately upon noticing it - didn't realize that you had asked the OP to fix it.
     
    Roel De Nijs
    Sheriff
    Posts: 10662
    144
    AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Andrew Monkhouse wrote:Oops - I changed it immediately upon noticing it - didn't realize that you had asked the OP to fix it.

    Not a problem Andrew. Most important thing is that it is fixed (doesn't matter who does it). And I only can ask the OP to fix it, because I don't have your special powers to do it myself
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic