A.12.7 SET

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.

  • Some properties require you to specify the name of an Oracle Stream Analytics MBean. In this case, specify the fully qualified object name of an MBean in the http://java.sun.com/j2se/1.5.0/docs/api/javax/management/ObjectName.html format. For example (in practice, the string should be on one line):

    "com.bea.wlevs:Name=<name of the stage>,Type=<type of MBean>,
    Application=<name of the application>"
    
  • When the property value is an MBean array, separate each MBean object name by a semicolon and surround the entire property value list with quotes. For example:

    "com.bea.wlevs:Application=<name of the application>,Type=<type of MBean>,Name=<name of the Stage>;Type=<type of MBean>,Name=<name of the stage>" 
    
  • When the property value is a String array, separate each string by a semicolon and surround the entire property value list with quotes:

       "String1;String2;. . . "
    
  • When the property value is a String or String array, you can set the value to null by using either of the following:

    -property property-name "" 
    -property property-name 
    
  • If the property value contains spaces, surround the value with quotes:

    "-Da=1 -Db=3" 
    

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