Technical data

B WebLogic Server Command-Line Interface Reference
B-42 Administration Guide
INVOKE
Invokes the specified method (including arguments) on the specified Mbean. This
command can call only run-time Mbeans. Use this command to invoke methods that
do not get or set Mbean attributes.
Syntax
java weblogic.Admin [Connection and User Credentials Arguments]
INVOKE {–type mbean_type|–mbean mbean_name} –method
methodname [argument . . .]
Example
The following example invokes an administration Mbean named admin_one using the
method
getAttributeStringValue:
java weblogic.Admin -username system -password gumby1234 INVOKE
-mbean mydomain:Name=admin_one,Type=Administrator
-method getAttributeStringValue PhoneNumber
Arguments Definition
mbean_type
Required when invoking attributes for multiple objects of the same type, and must include the
fully qualified name of the Mbean, as follows:
“domain:Name:name,Type=type,Application=application
mbean_name
Required. Fully qualified name of an Mbean, as follows:
“domain:Type=type,Location=location,Name=name
where:
n Type specifies the type of object grouping
n Location specifies the location of the Mbean
n Name is the Mbean name
When the argument is a String array, the arguments must be passed in the following format:
String1;String2;. . . ”
methodname
Required. Name of the method to be invoked. Following the method name, the user can
specify arguments to be passed to the method call, as follows:
domain:Name=name,Type=type