WebLogic Server Command Reference
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Invokes a management operation for one or more MBeans. For WebLogic Server MBeans, you usually use this command to invoke operations other than the get
Attribute
and set
Attribute
that most WebLogic Server MBeans provide.
java [ SSL Arguments ] weblogic.Admin
[ {-urlURL
} |
[
{-adminurlprotocol
://
]Admin-Server-listen-address:listen-port
}
[ User Credentials Arguments ]
]
INVOKE {-typembeanType
|-mbeanobjectName
} -methodmethodname
[argument
. . .]
{-url [
|
To invoke operations for Administration MBeans, use To invoke operations for Runtime MBeans, use one of the following:
We recommend that you do not invoke operations for Local Configuration MBeans. Instead, invoke the operation on the corresponding Administration MBean. |
Invokes the operation on all MBeans of a specific type. For more information, refer to Specifying MBean Types. |
|
Fully qualified object name of an MBean, in the For more information refer to the Javadoc for |
|
Arguments to be passed to the method call. When the argument is a String array, the arguments must be passed in the following format: |
The following example enables a JDBC connection pool by invoking the enable
method of the JDBCConnectionPoolRuntime
MBean:
java weblogic.Admin -url AdminHost:7001 -username weblogic
-password weblogic INVOKE
-mbean MedRec:Location=MedRecServer,Name=myPool,
ServerRuntime=MedRec,Type=JDBCConnectionPoolRuntime
-method enable
If the command succeeds, it returns the following:
{MBeanName="MedRec:Location=MedRecServer,Name=MedRecPool,ServerRuntime=Med
RecServer,Type=JDBCConnectionPoolRuntime"}
Ok
For more information about the environment in which this example runs, refer to Example Environment.
The following example enables all JDBC connection pools in the domain by invoking the enable
method of all the JDBCConnectionPoolRuntime
MBeans:
java weblogic.Admin -adminurl AdminHost:7001 -username weblogic
-password weblogic INVOKE
-type JDBCConnectionPoolRuntime -method enable
![]() ![]() |
![]() |
![]() |