You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ronald Klop <ro...@base.nl> on 2006/03/21 13:47:05 UTC

5.5.15: is the context of the webapp clustered?

Hello,

I'm running a 4 node cluster of 5.5.15. The session replication works ok.
I am looking for a distributed way of sharing global data (non-session) between the nodes.
Is the ServletContext clustered? Is there another good clustering method for global data in my application?

If the ServletContext is not clustered I'm thinking of a creating a dummy session on one of the servers which is replicated and using the data/events of that session to replicate some info between the nodes.

Do more people do this? Or do you solve it with something else?

Ronald.



Re: 5.5.15: is the context of the webapp clustered?

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
The servlet context is not replicated, but it will be in near future 
with the new clustering engine that we are putting in.
If you want to jump start that, you can build Apache Tribes (the new 
tomcat clustering engine) (svn location: 
tc5.5.x/container/modules/groupcom),
its got a couple of different add-ons to the replication, such as a 
ReplicatedMap, LazyReplicatedMap, RpcChannel (for response required 
messaging) that you can use to achieve your goals.

The documentation is yet sparse, but there are a couple of demos that 
you can learn from. In the future, if there are enough helping 
resources, we might even be able to add in a replicated JNDI tree.

Filip

Ronald Klop wrote:
> Hello,
>
> I'm running a 4 node cluster of 5.5.15. The session replication works ok.
> I am looking for a distributed way of sharing global data 
> (non-session) between the nodes.
> Is the ServletContext clustered? Is there another good clustering 
> method for global data in my application?
>
> If the ServletContext is not clustered I'm thinking of a creating a 
> dummy session on one of the servers which is replicated and using the 
> data/events of that session to replicate some info between the nodes.
>
> Do more people do this? Or do you solve it with something else?
>
> Ronald.
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org