/PNS-SI4-S7_MwSOC_VOD

Code:En, Doc:En - Java RMI project

Primary LanguageJavaMIT LicenseMIT

PNS-SI4-S7_MWSCO_VOD

Subject

You can find the subject here

Students

How to run

Using Java JDK 17.0 and language level 17.0 or lower. (For IntelliJ users, you can set the language level in File > Project Structure > Project)

If you are using IntelliJ, you can open the two folders as two projects, the .run/*.xml describe the IDE configuration to run the project automatically (with command line arguments) using localhost and port 2001.

  1. run main.Main.main(String[] args); from Server_VOD, Usage : java -jar Server_VOD.jar <port>
  2. run main.Main.main(String[] args); from Client_VOD, Usage : java -jar Client_VOD.jar <ip> <port>

How to use it ?

Server side :

  • Just run it, nothing else

Client side :

  • Run
  • Log in or create a new account
  • The film catalog is displayed
  • Enter the number of the movie that you want to play using the number in front of the movie name
  • You will revcieve the bill
  • You can watch another movie by typing again its number or type 0 to quit
  • Type y to confirm

Implemented bonus tasks

  • Catch and manage connection exceptions (write a message in the client console and asks the user to re-enter the credentials, both for sign in and login)
  • save credentials in a file (server-side) and read that file whenever the server is launched, so you could stop and restart your server without losing data.