This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Tomcat and the fly likes How to find Tomcat cluster members? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to find Tomcat cluster members?" Watch "How to find Tomcat cluster members?" New topic
Author

How to find Tomcat cluster members?

Arthur Eckert
Greenhorn

Joined: Mar 13, 2012
Posts: 4
Hello folks,

is there a way to figure out all cluster members in a Tomcat node? I would like to extend a web application with a view of all active cluster nodes.

Is there also a way to send messages from one node to another, or a multicast message to all nodes? - At the moment I use jgroups to establish a communication between all nodes.

Thank you in advance,
Arthur
Arthur Eckert
Greenhorn

Joined: Mar 13, 2012
Posts: 4
I found something. Tomcat uses a framework called Apache Tribes (lib directory 'catalina-tribes.jar')

http://tomcat.apache.org/tomcat-7.0-doc/tribes/introduction.html
Arthur Eckert
Greenhorn

Joined: Mar 13, 2012
Posts: 4
I did a bad workaround for test purpose. If anyone knows a better way please let me know.

 
Consider Paul's rocket mass heater.
 
subject: How to find Tomcat cluster members?