From dc52bf45d13ed675a604b92d4c04d0326b7a832d Mon Sep 17 00:00:00 2001 From: prola Date: Fri, 21 Sep 2018 16:55:41 -0400 Subject: [PATCH] Updating Readme file Updating Readme file to account for users running RabbitMQ as a Docker service. The Guest/Guest account is only accessible from the containers internal network and blocks requests for port 61613 --- Readme.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Readme.md b/Readme.md index 23ec5fd6..c13c244c 100644 --- a/Readme.md +++ b/Readme.md @@ -35,3 +35,18 @@ mvn spring-boot:run You can find the tutorial for this application on my blog - https://www.callicoder.com/spring-boot-websocket-chat-example/ + +## Note +If you are running rabbitmq from a docker instance Guest/Guest credentials will not work since the virtual host permissions block the request. + +Set the system login and system passcode to your admin account + +```bash +registry.enableStompBrokerRelay("/topic") + .setRelayHost("localhost") + .setRelayPort(61613) + .setClientLogin("admin") + .setSystemLogin("admin") + .setSystemPasscode("password") + .setClientPasscode("password"); +```