在WebSphere中跨JVM进行会话复制 [英] Session replication across JVMs in WebSphere

查看:136
本文介绍了在WebSphere中跨JVM进行会话复制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们建立了一个基础架构,其中Web服务器在群集中,而应用程序服务器不在其中. Web服务器根据轮询策略将请求路由到应用程序服务器.

We have an infrastructure set up where in the webservers are clustered and the application servers are not. The webservers route the request to the application servers based on round-robin policy.

在这种情况下,一个应用程序服务器中可用的会话数据在另一应用程序服务器中不可用.无论如何,是否可以通过第二个应用程序提供来自第一个应用程序服务器的会话数据?这两个应用程序服务器在物理上是分开的,位于不同单元中的盒子.

In this scenario, the session data available in one application server is not available in the other application server. Is there anyway by which the session data from first application server can be made available in the second application ? The two application servers are physically separate boxes in different cells.

一种方法可能是使用数据库-还有其他方法可以完成此会话复制吗?

One approach could be to use the database - is there any other means of accomplishing this session replication ?

推荐答案

在WebSphere中,基本上有两种方法可以复制会话数据:

In WebSphere there are essentially two ways to replicate session data:

  1. 坚持到数据库
  2. 内存到内存的传输

哪种类型最适合您的需求取决于您的应用程序场景:

Which one is appropriate for your needs is highly dependent on your application scenario:

当所有应用程序服务器都停机时,会话数据的持久性有多重要? 您同时一次有几个会话对象?

How important is the persistence of your session data, when all your application servers go down? How many session objects do you have at any one time simultaneously?

在数据库中,您可以存储很多会话而不会出现很多问题,另一个选择始终是有关可用内存量的问题.

In a DB you can store many sessions without much problems, the other option is always a question of how much memory is available.

如果您已经设置了数据库,那么所有应用程序服务器都将使用该数据库.

I would go with the database, if you already got one set up, which all application servers use anyway.

此处是

Here is the link to the WebSphere Information Center with the necessary details.

这篇关于在WebSphere中跨JVM进行会话复制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆