Skip to content

erba/Distributed-Systems-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Project for the course Distributed Systems

Theme: Build a simple ticket management system using Java EE (Jakarta) and communication protocols UDP, AMQP, REST, and gRPC.

Running the project:

Starting the server

  1. The server needs to be started first
  2. Import the Project in IntelliJ/Eclipse, with root directory ticketservice
  3. If your JDK version is less than 11 you need to set 'sourceCompatibility' in build.gradle to that number
  4. Open TicketServerMain.java
    1. Eclipse:
      1. click Run > Run Configurations > Java Application > New Configuration
      2. The config will be generated, you only need to set "Program arguments" in the "Arguments" tab
      3. Example: localhost 1234
    2. IntelliJ
      1. click on green trinagle next to the main-method of TicketServerMain > create 'TicketServerMain.main()'
      2. the config is generated, you only need to set 'Program arguments'
  5. Run/Debug the configuration

The shared project is automatically build before the server is started. Look at the dependencies block in the server/build.gradle.

Starting the client

  1. Create a Run-Configuration for Main.java with the necessary program arguments, the same way as for the server
    1. Program arguments example: udp localhost 1234
  2. Run/Debug the configuration
  3. For testing purposes the client configuration can be run multiple times from the same machine(at least in IntelliJ). When closing one client all of close.

The shared project is automatically included in the dependencies of the client and server. If you are interested inspect the idistrsys/build.gradle to see all the relevant settings, configurations and tasks.

About

Distributed Systems Project: Build a ticket management system using Java EE (Jakarta)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published