简体   繁体   English

在集群环境中使用外部消息代理(RabbitMQ)将Spring套接字转换并发送给用户

[英]spring socket convertandsendtouser with external message broker(RabbitMQ) in cluster environment

Spring will append sessionid to destination queue for external message broker like RabbitMQ. Spring会将sessionid附加到目标队列,以供RabbitMQ之类的外部消息代理使用。 I noticed this sessionId for username is fetched from DefaultUserSessionRegistry ->userSessionIds. 我注意到此用户名的sessionId是从DefaultUserSessionRegistry-> userSessionIds中获取的。

Will it work in cluster environment? 它可以在集群环境中工作吗? If it is not being fetched from DefaultUserSessionRegistry, where is this mapping stored? 如果未从DefaultUserSessionRegistry中获取它,则此映射存储在哪里?

You're right, in a clustered environment, this may not fully work at the moment. 没错,在集群环境中,此刻可能无法完全正常工作。

You probably want to track the SPR-11620 issue , targeted for Spring Framework 4.2. 您可能想要跟踪针对Spring Framework 4.2 的SPR-11620问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM