The PartitionName attribute in cluster-service.xml and the ClusterName attribute in
tc5-cluster-service.xml end up doing the same thing -- they are passed to the JGroups
channel each service creates to give that channel it's name.
Each service needs its own JGroups channel (that will change in JBoss 5.0, but its
definitely true in 3.2.x and 4.0.x). The channel name is one of the things that gives a
channel its identity. So, yes, for each TreeCache you deploy, you'll want to give it
a different ClusterName.
A good approach with a TreeCache used in the appserver is to do something like this:
<attribute
name="ClusterName">MyCache-${jboss.partition.name:DefaultPartition}</attribute>
The first part is a unique name for the cache; different from other caches you deploy.
The second part is whatever you pass to a -g switch at the command line, or
"DefaultPartition" if you don't pass anything.
Then start jboss with the -g switch
run -g MyPartition -c all
The ClusterName for your cache would then be MyCache-MyPartition. For the
tc5-cluster-service cache it would be Tomcat-MyPartition. The PartitionName in
cluster-service.xml would be MyPartition. All unique, but \having a common bit of info.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973148#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...