This content has been marked as final.
Show 4 replies
-
1. Re: ::::::intercept dead instance of jboss :::::
kaobe Feb 27, 2004 2:47 AM (in response to nadaya)Hi,
can you explain what you mean with intercept?
Peter -
2. Re: ::::::intercept dead instance of jboss :::::
ammon Feb 27, 2004 7:01 AM (in response to nadaya)Sorry If I do not write well in English but I am using a tool of translation...
Well ....
I want to create a class that notices when in the partition dies a node ..
example when dies a node I look "Dead members ..."
Thanks -
3. Re: ::::::intercept dead instance of jboss :::::
michael.daleiden Mar 2, 2004 11:06 AM (in response to nadaya)Take a look at the TopologyMonitorService MBean (org.jboss.ha.framework.server.util.TopologyMonitorService), and the TriggerServiceName attribute:
<?xml version="1.0" encoding="UTF-8"?> <!-- ===================================================================== --> <!-- --> <!-- Topology Monitor Service Configuration --> <!-- --> <!-- ===================================================================== --> <server> <classpath codebase="lib" archives="jbossha.jar"/> <mbean code="org.jboss.ha.framework.server.util.TopologyMonitorService" name="Telematics:service=TopologyService"> <attribute name="PartitionName">DefaultPartition</attribute> <attribute name="TriggerServiceName"></attribute> </mbean> </server>
Basically, you can create an MBean that implements the following method, then set the TriggerServiceName to the ObjectName of your MBean:/** * Updates the MBean based on cluster membership changes. * * @param deadMembers list of cluster members that have died * * @param newMembers list of cluster members that have joined * * @param allMembers list of all active cluster members * * @param logCategoryName log4j category name for logging messages * * @jmx.managed-operation */ public void membershipChanged(ArrayList deadMembers, ArrayList newMembers, ArrayList allMembers, String logCategoryName) {
I use this mechanism to clean up a distributed cache (JBoss TreeCache) when one of the servers in the cluster dies unexpectedly. -
4. Re: ::::::intercept dead instance of jboss :::::
ammon Mar 3, 2004 12:53 AM (in response to nadaya)OK thanks many... for all