Skip to content

Commit

Permalink
fix: stomp client 연결 계정 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
psychology50 committed Oct 9, 2024
1 parent 2dbc93b commit b9fec4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@ public void registerStompEndpoints(StompEndpointRegistry registry) {
@Override
public void configureMessageBroker(MessageBrokerRegistry config) {
config.enableStompBrokerRelay("/queue", "/topic", "/exchange", "/amq/queue")
.setAutoStartup(true)
.setTcpClient(createTcpClient())
.setSystemLogin(messageBrokerProperties.getSystemId())
.setSystemPasscode(messageBrokerProperties.getSystemPassword())
.setClientLogin(messageBrokerProperties.getClientId())
.setClientPasscode(messageBrokerProperties.getClientPassword())
.setRelayHost(messageBrokerProperties.getHost())
.setRelayPort(messageBrokerProperties.getPort());

Expand Down
2 changes: 2 additions & 0 deletions pennyway-socket/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ message-broker:
port: ${MESSAGE_BROKER_PORT:5672}
system-id: ${MESSAGE_BROKER_SYSTEM_ID:guest}
system-password: ${MESSAGE_BROKER_SYSTEM_PASSWORD:guest}
client-id: ${MESSAGE_BROKER_CLIENT_ID:guest}
client-password: ${MESSAGE_BROKER_CLIENT_PASSWORD:guest}
user-prefix: ${MESSAGE_BROKER_USER_PREFIX:/usr}
publish-exchange: ${MESSAGE_BROKER_PUBLISH_EXCHANGE:/topic}

Expand Down

0 comments on commit b9fec4e

Please sign in to comment.