在EC2上的Glassfish集群会话复制 [英] Session replication in Glassfish Cluster on EC2
问题描述
我已经建立在Glassfish集群通过SSH,其中有2个实例administred。我部署,显示了会话ID的应用程序。
I've built a cluster on Glassfish administred via SSH, where there are 2 instances. I deployed an application that shows the "Session id".
该应用程序在web.config中:
This application has in the web.config:
<distributable/>
而在sun-web.xml中:
And in the sun-web.xml:
<session-config>
<cookie-properties>
<property name="cookieDomain" value="compute.amazonaws.com"/>
</cookie-properties>
</session-config>
我启用了可用性的编辑应用程序。
I enabled "Availability" in Edit Application.
但是,当我进入2 Web应用程序版本,我看到不同的会话ID。 谁能帮我?
But when I access the 2 web app versions I see different session ids. Can anyone help me?
编辑:由于一些用户发现,在EC2不支持组播。一个解决方案自带的Glassfish V3.1.2,它允许两个不同的方式来发现组播是不允许的(通过列举实例IP或使之自动生成列表)时,一个集群。这里的规定如何启动一个集群中的非组播环境:的管理GlassFish服务器集群
As some users noticed, in EC2 is not supported multicast. A solution comes with Glassfish v3.1.2, that allows two other different ways to discover a cluster when multicasting is not permitted (by listing instances ip or making it auto-generate the list). Here's specified how to start a cluster in a non-multicasting environment: Administering Glassfish Server Clusters
推荐答案
由于一些用户发现,在EC2不支持组播。一个解决方案自带的Glassfish V3.1.2,它允许两个不同的方式来发现组播是不允许的(通过列举实例IP或使之自动生成列表)时,一个集群。这里的规定如何启动一个集群中的非组播环境:的管理GlassFish服务器集群
As some users noticed, in EC2 is not supported multicast. A solution comes with Glassfish v3.1.2, that allows two other different ways to discover a cluster when multicasting is not permitted (by listing instances ip or making it auto-generate the list). Here's specified how to start a cluster in a non-multicasting environment: Administering Glassfish Server Clusters
这篇关于在EC2上的Glassfish集群会话复制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!