ServerClient1Client2Consumer
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
Compile and build the Server and Consumer modules.
Deploy the server WAR file.
- WAR File Path:
Server/out/artifacts/Server_war/Server_war.war
Deploy the consumer JAR file.
- JAR File Path:
Consumer/out/artifacts/Consumer_jar/Consumer.jar
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/
Execute Client2.
- Output: Results will be printed in the console.
- RabbitMQ Monitoring: You can view queue information in the RabbitMQ management interface.