Sets the specified property (attribute) values for an MBean.
If the command is successful, it returns OK
and saves the new values to the server configuration.
Syntax
java wlevs.Admin [ Connection Arguments ] [ User Credentials Arguments ] [ Common Arguments ] SET {-type mbeanType | -mbean objectName} -property property1 property1_value [-property property2 property2_value] . . .
Table A-18 SET Arguments
Argument | Definition |
---|---|
-type mbeanType
|
Sets the properties for all MBeans of a specific type. For more information, see Specifying MBean Types. |
-mbean objectName
|
Fully qualified object name of an MBean in the http://java.sun.com/j2se/1.5.0/docs/api/javax/management/ObjectName.html format: "com.bea.wlevs:Name=<name of the stage>,Type=<MBean type>,Application=<name of the deployed application>" |
-property property
|
The name of the property to be set. |
property _value
|
The value to be set.
|
Example
The following example shows how to set the MaxSize
property of the channel named helloworldOutstream
of the helloworld
application:
java wlevs.Admin -url service:jmx:msarmi://localhost:9002/jndi/jmxconnector -username wlevs -password wlevs SET -mbean com.bea.wlevs:Name=helloworldOutstream,Type=Channel,Application=helloworld -property MaxSize 1024