Constructs wdr.control.MBean object from string representation of MBean ObjectName.

mbean( objectName )

This function comes helpful when mixing classic wsadmin code with WDR-based code. JMX ObjectName obtained by wsadmin AdminControl.queryNames or by other means can be easily converted into wdr.control.MBean object.

Arguments

objectName

string representation of ObjectName

Result

wdr.control.MBean instance

Examples

# objectName variable will contain a single-line string representing ObjectName of dmgr Server
objectName = AdminControl.queryNames('WebSphere:*,type=Server,name=dmgr')
dmgr = mbean(objectName)
print dmgr.state