|
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:
- 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.
- 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 |
|
|
|
|
|
|