Refreshing the cluster MBean Objects in wsadmin
 Technote (troubleshooting)
 
Problem(Abstract)
How do I refresh the cluster MBean objects in wsadmin so they show the current information?
 
Resolving the problem
For a $AdminControl query to get a correct list of existing clusters, the retrieveCluster operation must first be invoked to refresh the list of clusters.
Here are the commands to refresh the cluster list:
  1. Identify the ClusterMgr MBean and assign it to the clusterMgr variable:
    set clusterMgr [$AdminControl completeObjectName cell=mycell,type=ClusterMgr,*]
    This command returns the ClusterMgr MBean.
  2. Refresh the list of clusters.
    $AdminControl invoke $clusterMgr retrieveClusters
    This command calls the retrieveClusters operation on the ClusterMgr MBean.

$AdminControl queryNames type=Cluster,* returns the correct list of clusters.

Similarly, after a cluster is created, run steps 1 and 2 to retrieve the latest list of clusters. If you list the clusters in the console after creating a cluster, the retrieveCluster operation is called by the administrative application code so you do not need to explicitly invoke the clusters. However, the administrative application code does not call retrieveCluster after a cluster is deleted.

We recommend that you always call retrieveCluster first to make sure the clusters returned are up-to-date.
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s): Windows
Software version: 5.0
Software edition:
Reference #: 1162419
IBM Group: Software Group
Modified date: Mar 4, 2004