Skip to content

gracezhou777/Ski-Resort-Distributed-System

Repository files navigation

Project Structure

  • Server
  • Client1
  • Client2
  • Consumer

Steps to Run the Application

1. Update RabbitMQ and Redis Configuration

Update the RabbitMQ host, username, and password for both the server and consumer. Update the Redis host for consumer.

  • In Server: Update in Config.class
  • In Consumer: Update in Config.class

2. Build Server and Consumer

Compile and build the Server and Consumer modules.

3. Deploy the Server

Deploy the server WAR file.

  • WAR File Path: Server/out/artifacts/Server_war/Server_war.war

4. Deploy the Consumer

Deploy the consumer JAR file.

  • JAR File Path: Consumer/out/artifacts/Consumer_jar/Consumer.jar

5. Update Server URL in Client 2

Update the server URL for Client2 to point to the deployed server.

  • File: MultiThreadClient.java
  • Update URL: Replace the URL at the beginning of the class with your EC2 endpoint: http://<ec2-ip>:8080/Server_war/

6. Run Client2

Execute Client2.

  • Output: Results will be printed in the console.
  • RabbitMQ Monitoring: You can view queue information in the RabbitMQ management interface.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages