Technical data

B WebLogic Server Command-Line Interface Reference
B-38 Administration Guide
CREATE
Creates an instance of a configuration Mbean. Returns OK to stdout when successful.
This command cannot be used for run-time Mbeans. The Mbean instance is saved in
the
config.xml file or the security realm, depending on where the changes have been
made.
Note: When you create Mbeans, configuration objects are also created.
For more information about creating Mbeans, see Developing WebLogic Server
Applications, at
http://e-docs.bea.com/wls/docs61/programming/index.html.
Syntax
java weblogic.Admin [Connection and User Credentials Arguments]
CREATE –name name –type mbean_type
[–domain domain_name]
java weblogic.Admin [Connection and User Credentials Arguments]
CREATE –mbean mbean_name
Example
java weblogic.Admin -url localhost:7001 -username adminuser
-password gumby1234 CREATE -mbean
“mydomain:Type=Server,Name=acctServer”
Argument Definition
name
Required. The name you choose for the Mbean that you are creating.
mbean_type
Required. When creating attributes for multiple objects of the same
type.
mbean_name
Required. Fully qualified name of an Mbean, in the following format:
domain:Type=type,Name=name
Type
specifies a type of object grouping and Name specifies the Mbean
name.
domain_name
Optional. Name of the domain; for example, mydomain. If
domain_name is not specified, the default domain name is used.