会话复制从WebSphere到Tomcat

huangapple go评论59阅读模式
英文:

Session Replication from Websphere to Tomcat

问题

我有一个部署在WebSphere上的非常庞大的单体应用,现在我正在尝试在云上的Tomcat上创建另一个应用,并且需要将WebSphere中的会话复制到Tomcat。

我已经在网上查找过,会话可以在WebSphere内部或Tomcat内部轻松复制,但在两个服务器之间没有相同的解决方案, 在构建任何自定义解决方案之前,只是想检查是否有任何简单的方法来实现这一点。

WebSphere版本8.5+,Tomcat 8+

提前感谢您的帮助。会话通常包含已登录用户的数据。

英文:

I have a very big monolithic app deployed in websphere, now I am trying to create another app on tomcat on cloud, and need to replicate session from websphere to tomcat.

I have looked on web, session can be easily replicated within websphere or within tomcat, but there's no solution to do the same between two servers, before building any custom solution, just wanted to check if there's any easy way to achieve this.

Websphere version 8.5+, tomcat 8+

Thanks for your help in advance. Session usually has logged in user data.

答案1

得分: 0

会话复制并没有标准化,你很可能会发现其中有各种特定于容器的类 - 例如你自己提到的用户账户数据。因此,会话复制并不是正确的解决方案,它是一条死胡同,如果你寻求这个解决方案来解决潜在的问题,是找不到什么结果的。

你可能想要研究一下单点登录(可以解决多次登录的问题)或者无状态服务器,它们根本不会存储任何会话信息,这样你就可以不进行任何复制。

究竟哪种方法适合你取决于你具体的潜在问题。无论是什么情况,会话复制不是你的解决方案

英文:

Session replication is not standardized, and you'll most likely find various container-specific classes in there - e.g. the user account data that you mention yourself. Thus, session replication is the wrong path to go, it's a dead end and you won't find anything if you look for this solution to the underlying problem.

You might want to look into Single Sign On (which solves your problem of multiple logins) or stateless servers, that don't store any session information at all, so that you can go without any replication.

What exactly works for you depends on your exact underlying problem. Whatever it is, session replication is not your solution.

huangapple
  • 本文由 发表于 2020年9月17日 17:07:13
  • 转载请务必保留本文链接:https://go.coder-hub.com/63934770.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定