开发者

Apache Tomcat Cluster: Shared Objects / Events / Messages / Singletons

开发者 https://www.devze.com 2023-01-29 05:40 出处:网络
I\'m up to migrate an WebApplication into an Apache Tomcat Cluster. I\'mnow need to share some Events / Messages / Objects along the Cluster.

I'm up to migrate an WebApplication into an Apache Tomcat Cluster.

I'm now need to share some Events / Messages / Objects along the Cluster.

Eg. I got some critical long running Methods, that are only alowed to be started once in the whole Cluster.

Also there are some Events that should be shared. Like reload some Cached values.

Has someone some experience / best Practices / Tutorials to share about this issue?

I also read some Information about Terracotta for the shared objects, or Apache Tribes for Multicast Messaging. Has anyone some experience with this Frameworks? Or some good starter Tutorials?

Are there better Frameworks available for the described tasks?

Best Re开发者_如何学JAVAgards


I would recommend Hazelcast. It is free, open source and easy to use.


You can use JGroups to do this. Sample implementation can be found at http://speakingjava.blogspot.in/2014/10/how-to-execute-singleton-task-in-cluster.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号