Oracle GlassFish Server 3.1 Section 1: asadmin Utility Subcommands
create-connector-connection-pool(1)
create-connector-security-map(1)
create-connector-work-security-map(1)
create-jdbc-connection-pool(1)
create-message-security-provider(1)
create-resource-adapter-config(1)
delete-connector-connection-pool(1)
delete-connector-security-map(1)
delete-connector-work-security-map(1)
delete-jdbc-connection-pool(1)
delete-message-security-provider(1)
delete-resource-adapter-config(1)
disable-http-lb-application(1)
disable-secure-admin-internal-user(1)
disable-secure-admin-principal(1)
enable-secure-admin-internal-user(1)
enable-secure-admin-principal(1)
list-connector-connection-pools(1)
list-connector-security-maps(1)
list-connector-work-security-maps(1)
list-message-security-providers(1)
list-resource-adapter-configs(1)
list-secure-admin-internal-users(1)
list-secure-admin-principals(1)
list-supported-cipher-suites(1)
unfreeze-transaction-service(1)
update-admin-server-coordinates(1)
update-admin-server-local-coordinates(1)
update-connector-security-map(1)
update-connector-work-security-map(1)
Oracle GlassFish Server 3.1 Section 1M: Utility Commands
Oracle GlassFish Server 3.1 Section 5ASC: GlassFish Server Concepts
- adds the administered object with the specified JNDI name for a resource adapter
create-admin-object [--help] [--target target] --restype restype [--classname classname] --raname raname [--enabled={true|false}] [--description description] [--property name=value[:name=value]*] jndi_name
The create-admin-object subcommand creates the administered object with the specified JNDI name and the interface definition for a resource adapter.
This subcommand is supported in remote mode only.
Displays the help text for the subcommand.
Specifies the target on which you are creating the administered object. Valid values are as follows:
Creates the administered object for the default server instance server and is the default value.
Creates the administered object for the named configuration.
Creates the administered object for every server instance in the cluster.
Creates the administered object for a particular server instance.
Note - The resource is always created for the domain as a whole, but the resource-ref for the resource is only created for the specified --target. This means that although the resource is defined at the domain level, it is only available at the specified target level. Use the create-resource-ref subcommand to refer to the resource in multiple targets if needed.
Specifies the interface definition for the administered object. The resource type must be an interface definition that is specified in the ra.xml file of the resource adapter.
Specifies the class name of the administered object. Required if multiple administered objects use the same interface definition.
Specifies the name of the resource adapter associated with this administered object.
Specifies if this object is enabled. Default is true.
Text string describing the administered object.
Description of the name/values pairs for configuring the resource. Dependent on the resource adapter. For JMS properties, see create-jms-resource(1) for JMS destination resources.
JNDI name of the administered object to be created.
Example 1 Creating an Administered Object
In this example, jmsra is a system resource adapter with the admin object interfaces, javax.jms.Queue and javax.jms.Topic.
asadmin> create-admin-object --restype javax.jms.Queue --raname jmsra --description "sample administered object" --property Name=sample_jmsqueue jms/samplequeue Command create-admin-object executed successfully
subcommand executed successfully
error in executing the subcommand
delete-admin-object(1), list-admin-objects(1), create-resource-ref(1)