Skip navigation
Currently Being Moderated

Session Replication in the cloud (EC2)

Apr 26, 2013 2:05 PM



I have 2 ColdFusion instances (different machines) in a cluster on amazon EC2.

They are working fine, except for session replication.


EC2 don't support IP multicasting. So, I am trying a static approach.


I had added a static member interceptor:

<Interceptor className=" shipInterceptor">



                                                  className="org.apache.catalina.tribes.member ship.StaticMember"





                                                  uniqueId="{1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0}" />



and disabled the multicasting commenting this:

<!--  <Membership port="45565" dropTime="3000" address=""     className="org.apache.catalina.tribes.membership.McastService" frequency="500">

        </Membership> -->


and changing the cluster tag like this

<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"         channelSendOptions="6" channelStartOptions="3">


This worked locally on my machine, but in EC2 is not replicating.


The logs have:

Apr 26, 2013 8:47:44 PM org.apache.catalina.ha.tcp.SimpleTcpCluster memberAdded,  which is good.

Also have this messages:

Apr 26, 2013 8:48:02 PM org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:localhost#/


So, I am lost here.. what else can I try?


More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points