Sunday, 2 December 2012

Linking wsadmin Config ID's to Object Names


Here's a good way to link the config ID's that come out of AdminConfig to the Object names that come out of AdminControl

For example, if we have a datasource called event, we can link the config ID and Object Names together as follows... (see red text below)

From AdminConfig.list('DataSource')
event(cells/bpm_cell/clusters/RMRS.Support|resources.xml#DataSource_1281357127042)

From AdminControl.queryNames('type=DataSource,*')
WebSphere:name=event,process=RMRS.Support.node4.0,platform=dynamicproxy,node=node4,JDBCProvider=DB2 Universal JDBC Driver Provider (XA),diagnosticProvider=true,j2eeType=JDBCDataSource,J2EEServer=RMRS.Support.node4.0,Server=RMRS.Support.node4.0,version=7.0.0.11,type=DataSource,mbeanIdentifier=cells/bpm_cell/clusters/RMRS.Support/resources.xml#DataSource_1281357127042,JDBCResource=DB2 Universal JDBC Driver Provider (XA),cell=bpm_cell,spec=1.0

Can always us AdminContol.getConfigID also.. for example ...
threadpoolCID = AdminControl.getConfigId('node=mynode,type=ThreadPool,*')

No comments:

Post a Comment