WebLogic Server Command Reference
Creates an instance of a WebLogic Server Administration or Local Configuration MBean, however, BEA recommends that you do not use it to create Local Configuration MBeans. This command cannot be used for Runtime MBeans.
If the command is successful, it returns OK
.
When you use this command to create an Administration MBean instance, you must use the -url
argument to specify the Administration Server. WebLogic Server populates the Administration MBean with default values and saves the MBean's configuration in the domain's config.xml
file. For some types of Administration MBeans, WebLogic Server does not create the corresponding Local Configuration MBean replica until you restart the server instance that hosts the underlying managed resource. For example, if you create a JDBCConnectionPool
Administration MBean to manage a JDBC connection pool on a Managed Server named ManagedMedRecServer, you must restart ManagedMedRecServer so that it can create its local replica of the JDBCConnectionPool
Administration MBean that you created. For more information on MBean replication and the life cycle of MBeans, refer to "MBeans for Configuring Managed Resources" in the Programming WebLogic Management Services with JMX guide.
java [ SSL Arguments ] weblogic.Admin
[-urlURL
]
[ User Credentials Arguments ]
CREATE -namename
-typembeanType
java [ SSL Arguments ] weblogic.Admin
[-urlURL
]
[ User Credentials Arguments ]
CREATE -mbeanobjectName
Specify the listen address and listen port of the Administration Server. You can create Administration MBeans only on the Administration Server. If you specify a secure listen port, you must also specify a secure protocol. If you do not specify a value, the command assumes For more information, refer to the -url entry in Table 1-3 on page 11 and Protocol Support. Although the |
|
The type of MBean that you are creating. 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 |
The following example uses the -name
and -type
arguments to create a JDBCConnectionPool Administration MBean named myPool
on an Administration Server:
java weblogic.Admin -url AdminHost:7001 -username weblogic
-password weblogic CREATE -name myPool -type JDBCConnectionPool
For more information about the environment in which this example runs, refer to Example Environment.
If the command succeeds, it prints the following to standard out:
The following example uses the -mbean
argument and WebLogicObjectName
conventions to create a JDBCConnectionPool Administration MBean named myPool
on an Administration Server:
java weblogic.Admin -url AdminHost:7001 -username weblogic
-password weblogic
CREATE -mbean "mydomain:Type=JDBCConnectionPool,Name=myPool"